mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftSyntax: Add a trait for those statement nodes with code block as body. (#14726)
This patch also refactors SyntaxNodes code so that protocol conformances are declared as extensions.
This commit is contained in:
@@ -32,7 +32,7 @@ COMMON_NODES = [
|
||||
|
||||
# code-block -> '{' stmt-list '}'
|
||||
Node('CodeBlock', kind='Syntax',
|
||||
traits=['BracedSyntax'],
|
||||
traits=['Braced'],
|
||||
children=[
|
||||
Child('LeftBrace', kind='LeftBraceToken'),
|
||||
Child('Statements', kind='CodeBlockItemList'),
|
||||
|
||||
Reference in New Issue
Block a user