mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Postfix '#if' expression
Implement postfix ifconfig expression which expands '#if' functionality to postfix member reference expressions. rdar://problem/51690082
This commit is contained in:
@@ -592,6 +592,13 @@ EXPR_NODES = [
|
||||
Child('RightParen', kind='RightParenToken'),
|
||||
]),
|
||||
|
||||
# postfix '#if' expession
|
||||
Node('PostfixIfConfigExpr', kind='Expr',
|
||||
children=[
|
||||
Child('Base', kind='Expr'),
|
||||
Child('Config', kind='IfConfigDecl'),
|
||||
]),
|
||||
|
||||
# <#content#>
|
||||
Node('EditorPlaceholderExpr', kind='Expr',
|
||||
children=[
|
||||
|
||||
Reference in New Issue
Block a user