[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:
Rintaro Ishizaki
2020-12-15 10:43:28 -08:00
parent 605a9237b4
commit ce87bf7537
14 changed files with 274 additions and 3 deletions

View File

@@ -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=[