Skip to content

Keep bad type rendering balanced in type error recovery - #439

Open
makenowjust wants to merge 5 commits into
cloudspannerecosystem:mainfrom
makenowjust:MakeNowJust/fix-type-recovery
Open

makenowjust wants to merge 5 commits into
cloudspannerecosystem:mainfrom
makenowjust:MakeNowJust/fix-type-recovery

Conversation

@makenowjust

Copy link
Copy Markdown
Collaborator

Fixes #438

Additionally, this PR adds regression tests for error messages on !bad_ cases and expected token: <eof> tests.

testParser now re-parses the unparsed source of every testdata case and
requires the same error messages as the original parse. Errors located
after the node's end (trailing tokens, which are not part of the AST)
are out of the property's scope.
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.

bug: type error recovery renders unbalanced BadType (dropped > on >> split, premature stop at ))

1 participant