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:
Xi Ge
2018-02-19 18:49:07 -08:00
committed by GitHub
parent c12d1dbc99
commit 1b81fcb2b6
6 changed files with 54 additions and 34 deletions

View File

@@ -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'),