Commit 6aebdcf
committed
[lldb] Fix the computation of the hidden/in_user_code flag
in Swift expression evaluator diagnostics.
Before:
```
-> 11 let f = Foo()
12 bar(f)
Target 0: (test) stopped.
(lldb) p init
^
|error: initializers may only be declared within a type
╰─ error: expected '(' for initializer parameters
(lldb) b init
```
After:
```
-> 11 let f = Foo()
12 bar(f)
Target 0: (test) stopped.
(lldb) p init
˄
╰─ error: expected '(' for initializer parameters
(lldb) b init
```1 parent 22f7040 commit 6aebdcf
File tree
2 files changed
+72
-6
lines changed- lldb
- source/Plugins/TypeSystem/Swift
- test/API/lang/swift/expression/error_reporting
2 files changed
+72
-6
lines changedLines changed: 42 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
160 | 196 | | |
161 | 197 | | |
162 | 198 | | |
163 | 199 | | |
164 | | - | |
| 200 | + | |
165 | 201 | | |
166 | 202 | | |
167 | 203 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
17 | 46 | | |
18 | 47 | | |
19 | 48 | | |
| |||
58 | 87 | | |
59 | 88 | | |
60 | 89 | | |
| 90 | + | |
0 commit comments