mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -267,6 +267,7 @@ SYNTAX_NODE_SERIALIZATION_CODES = {
|
||||
'MissingStmt': 263,
|
||||
'MissingType': 264,
|
||||
'MissingPattern': 265,
|
||||
'GarbageNodes' : 266,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user