File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -121,15 +121,17 @@ def make_missing_swift_child(child):
121
121
tok_kind = token .swift_kind () if token else "unknown"
122
122
if not token or not token .text :
123
123
tok_kind += '("")'
124
- return 'RawSyntax.missingToken(TokenKind.%s)' % tok_kind
124
+ return f'RawSyntax.makeMissingToken(kind: TokenKind.{ tok_kind } , ' + \
125
+ 'arena: .default)'
125
126
else :
126
127
if child .syntax_kind == "Syntax" :
127
128
missing_kind = "unknown"
128
129
elif child .syntax_kind in SYNTAX_BASE_KINDS :
129
130
missing_kind = f"missing{ child .syntax_kind } "
130
131
else :
131
132
missing_kind = child .swift_syntax_kind
132
- return 'RawSyntax.missing(SyntaxKind.%s)' % missing_kind
133
+ return f'RawSyntax.makeEmptyLayout(kind: SyntaxKind.{ missing_kind } , ' + \
134
+ 'arena: .default)'
133
135
134
136
135
137
def create_node_map ():
You can’t perform that action at this time.
0 commit comments