Skip to content

Commit 6891d44

Browse files
committed
Remove syntax nodes for #file, #line, #column, #function, #dsohandle.
With __FILE__ et al no longer being keywords, the parser is no longer forming these syntax nodes. They are all handled as macro expansion expression nodes.
1 parent 5ebb5c5 commit 6891d44

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

gyb_syntax_support/ExprNodes.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -135,42 +135,6 @@
135135
by a `SequenceExprSyntax`.
136136
'''),
137137

138-
# A #line expression.
139-
Node('PoundLineExpr', name_for_diagnostics=None, kind='Expr',
140-
children=[
141-
Child('PoundLine', kind='PoundLineToken'),
142-
]),
143-
144-
# A #file expression.
145-
Node('PoundFileExpr', name_for_diagnostics=None, kind='Expr',
146-
children=[
147-
Child('PoundFile', kind='PoundFileToken'),
148-
]),
149-
150-
# A #fileID expression.
151-
Node('PoundFileIDExpr', name_for_diagnostics=None, kind='Expr',
152-
children=[
153-
Child('PoundFileID', kind='PoundFileIDToken'),
154-
]),
155-
156-
# A #filePath expression.
157-
Node('PoundFilePathExpr', name_for_diagnostics=None, kind='Expr',
158-
children=[
159-
Child('PoundFilePath', kind='PoundFilePathToken'),
160-
]),
161-
162-
# A #function expression.
163-
Node('PoundFunctionExpr', name_for_diagnostics=None, kind='Expr',
164-
children=[
165-
Child('PoundFunction', kind='PoundFunctionToken'),
166-
]),
167-
168-
# A #dsohandle expression.
169-
Node('PoundDsohandleExpr', name_for_diagnostics=None, kind='Expr',
170-
children=[
171-
Child('PoundDsohandle', kind='PoundDsohandleToken'),
172-
]),
173-
174138
# symbolic-reference-expression -> identifier generic-argument-clause?
175139
Node('SymbolicReferenceExpr', name_for_diagnostics=None, kind='Expr',
176140
children=[

0 commit comments

Comments
 (0)