Skip to content

fix(compiler): use actual class declaration line number in debug info#169

Merged
Brooooooklyn merged 1 commit intovoidzero-dev:mainfrom
Shinigami92:fix-class-debug-line-number
Mar 26, 2026
Merged

fix(compiler): use actual class declaration line number in debug info#169
Brooooooklyn merged 1 commit intovoidzero-dev:mainfrom
Shinigami92:fix-class-debug-line-number

Conversation

@Shinigami92
Copy link
Contributor

The ɵsetClassDebugInfo call was hardcoding lineNumber: 1 for all components. This was noted as a TODO in the codebase.

The fix threads the source text into compile_component_full and computes the actual 1-indexed line number from metadata.class_span.start.

Snapshot updates reflect the corrected line numbers (e.g. lineNumber:9, lineNumber:12, lineNumber:22). A few snapshots also picked up a minor formatting normalization from insta (blank line after the --- header) — no functional change.

@Shinigami92 Shinigami92 force-pushed the fix-class-debug-line-number branch from 42cf549 to 32da404 Compare March 25, 2026 18:37
@Shinigami92 Shinigami92 marked this pull request as ready for review March 25, 2026 18:38
@Brooooooklyn Brooooooklyn merged commit 8b11c49 into voidzero-dev:main Mar 26, 2026
2 checks passed
@Shinigami92 Shinigami92 deleted the fix-class-debug-line-number branch March 26, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants