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):
121121 tok_kind = token .swift_kind () if token else "unknown"
122122 if not token or not token .text :
123123 tok_kind += '("")'
124- return 'RawSyntax.missingToken(TokenKind.%s)' % tok_kind
124+ return f'RawSyntax.makeMissingToken(kind: TokenKind.{ tok_kind } , ' + \
125+ 'arena: .default)'
125126 else :
126127 if child .syntax_kind == "Syntax" :
127128 missing_kind = "unknown"
128129 elif child .syntax_kind in SYNTAX_BASE_KINDS :
129130 missing_kind = f"missing{ child .syntax_kind } "
130131 else :
131132 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)'
133135
134136
135137def create_node_map ():
You can’t perform that action at this time.
0 commit comments