Commit cc5b76d7
cc5b76d7e707Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 5 files · ~5 modified
Description
Merge pull request #1298 from OriPekelman/pr/emit-types
Add spinel --emit-types: position-keyed inferred types + degrade diagnostics (JSON)
Details
- Commit
- cc5b76d7e707
- Parent
- 2da3481cf349
- Merge parent
- 3b53a628b217
compiler_helpers.rbmodifiedView file
@@ -468,6 +468,7 @@
468468
@nd_value.push(0)469469
@nd_line.push(0) # keep the source-map arrays parallel with the rest, so a470470
@nd_file.push(0) # dynamically-allocated node can't drift them out of sync471+
@nd_col.push(0) # (and the self-host inferencer needs the literal push here)471472
@nd_content.push("")472473
@nd_flags.push(0)473474
@nd_operator.push("")@@ -532,6 +533,7 @@
532533
@nd_value = Array.new(n, 0)533534
@nd_line = Array.new(n, 0)534535
@nd_file = Array.new(n, 0)536+
@nd_col = Array.new(n, 0)535537
@nd_content = Array.new(n, "")536538
@nd_flags = Array.new(n, 0)537539
@nd_operator = Array.new(n, "")@@ -680,6 +682,10 @@
680682
if field == "node_file"681683
@nd_file[nid] = val682684
end685+
# Debug/types export: 0-based source column for hover position keys.686+
if field == "node_col"687+
@nd_col[nid] = val688+
end683689
end684690
685691
# Debug multi-file map: record a FILE <id> <path> table entry emitted byspinelmodifiedView file
Loading diff…
spinel_analyze.rbmodifiedView file
Loading diff…
spinel_codegen.rbmodifiedView file
Loading diff…
spinel_parse.cmodifiedView file
Loading diff…