[libSyntax] Allow adding garbage nodes in between any two children of a syntax node

When the source code is invalid, this allows us to represent tokens that could not be used to form a valid syntax tree with more fidelity.

This commit does not start using GarbageNodes yet, it just sets everything up for them.
This commit is contained in:
Alex Hoppen
2022-08-02 11:58:11 +02:00
parent 38648ec209
commit c2695f0ffc
23 changed files with 905 additions and 201 deletions

View File

@@ -267,6 +267,7 @@ SYNTAX_NODE_SERIALIZATION_CODES = {
'MissingStmt': 263,
'MissingType': 264,
'MissingPattern': 265,
'GarbageNodes' : 266,
}