Skip to content

Simplify text reconstruction - #21

Merged
gafter merged 2 commits into
mainfrom
simplify-text-reconstruction
Nov 24, 2025
Merged

gafter merged 2 commits into
mainfrom
simplify-text-reconstruction

Conversation

@gafter

@gafter gafter commented Nov 24, 2025 •

Copy link
Copy Markdown
Owner

Note

Replace manual text reconstruction with ProgramSyntax.FullText and make Blender stop implementing ICharacterSource, routing lexing through an internal character-source wrapper.

  • Interpreter:
    • Use program.FullText in Execute(ProgramSyntax); remove custom text reconstruction helpers and related System.Text usage.
  • Parser/Blender:
    • Blender no longer implements ICharacterSource; remove delegated interface members.
    • Lexer now constructed with _characterSource instead of this.
    • Maintain character access via internal BlenderCharacterSource, keeping position tracking methods (PeekCharacterCore, ConsumeCharacterCore) internal.

Written by Cursor Bugbot for commit 3f8847a. This will update automatically on new commits. Configure here.

Replace manual text reconstruction with the built-in FullText property
which already includes leading and trailing trivia. Remove unnecessary
ReconstructText and AppendNodeText helper methods.
Blender no longer needs to implement ICharacterSource directly since
BlenderCharacterSource already wraps the character access methods.
Pass _characterSource directly to Lexer instead of this.
@gafter
gafter merged commit 24bfaac into main Nov 24, 2025
2 checks passed
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.

1 participant