Commit 1f41d86
committed
lang: ast: Give resource-build errors a source byline
Storing an incompatible value into a resource field (e.g. a negative int
into an unsigned field) surfaced from the interpret layer without any
position. Attach the offending StmtResField's byline at the types.Into
failure site so the user is pointed at the specific field, with a caret
snippet, rather than the whole resource block.1 parent 78e9ade commit 1f41d86
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1165 | 1167 | | |
1166 | 1168 | | |
1167 | 1169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
0 commit comments