mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[libSyntax] Fix parsing of #if inside type declarations
This commit is contained in:
@@ -96,8 +96,10 @@ DECL_NODES = [
|
||||
is_optional=True),
|
||||
Child('Elements', kind='Syntax',
|
||||
node_choices=[
|
||||
Child('Statements', kind='CodeBlockItemList'),
|
||||
Child('SwitchCases', kind='SwitchCaseList')]),
|
||||
Child('Statements', kind='CodeBlockItemList'),
|
||||
Child('SwitchCases', kind='SwitchCaseList'),
|
||||
Child('Decls', kind='DeclList'),
|
||||
]),
|
||||
]),
|
||||
|
||||
Node('IfConfigClauseList', kind='SyntaxCollection',
|
||||
|
||||
Reference in New Issue
Block a user