Skip to content

Commit 38278e5

Browse files
committed
[SwiftSyntax] Fix issue in generation of ParsedSyntaxBuilders
`child_elt_name` was inferred from the last iteration of the loop above, which was incorrect.
1 parent 4b45f05 commit 38278e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Parse/ParsedSyntaxBuilders.cpp.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void Parsed${node.name}Builder::finishLayout(bool deferred) {
8585
% if node.children:
8686
% for (idx, child) in enumerate(node.children):
8787
% child_elt = None
88+
% child_elt_name = child.name + 'Member'
8889
% child_node = NODE_MAP.get(child.syntax_kind)
8990
% if child_node and child_node.is_syntax_collection():
9091
% child_elt = child_node.collection_element_name

0 commit comments

Comments
 (0)