Skip to content

Commit 659214e

Browse files
committed
Remove syntax node and tokens for #warning and #error
1 parent bb6e234 commit 659214e

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

gyb_syntax_support/DeclNodes.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,6 @@
121121
classification='BuildConfigId'),
122122
]),
123123

124-
Node('PoundErrorDecl', name_for_diagnostics="'#error' directive", kind='Decl',
125-
traits=['Parenthesized'],
126-
children=[
127-
Child('PoundError', kind='PoundErrorToken'),
128-
Child('LeftParen', kind='LeftParenToken'),
129-
Child('Message', kind='StringLiteralExpr', name_for_diagnostics='message'),
130-
Child('RightParen', kind='RightParenToken')
131-
]),
132-
133-
Node('PoundWarningDecl', name_for_diagnostics="'#warning' directive", kind='Decl',
134-
traits=['Parenthesized'],
135-
children=[
136-
Child('PoundWarning', kind='PoundWarningToken'),
137-
Child('LeftParen', kind='LeftParenToken'),
138-
Child('Message', kind='StringLiteralExpr', name_for_diagnostics='message'),
139-
Child('RightParen', kind='RightParenToken')
140-
]),
141-
142124
Node('PoundSourceLocation', name_for_diagnostics="'#sourceLocation' directive",
143125
kind='Decl', traits=['Parenthesized'],
144126
children=[

gyb_syntax_support/Token.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def macro_name(self):
230230
# Keywords prefixed with a '#'.
231231
PoundDirectiveKeyword('PoundSourceLocation', 'sourceLocation',
232232
text='#sourceLocation'),
233-
PoundDirectiveKeyword('PoundWarning', 'warning', text='#warning'),
234-
PoundDirectiveKeyword('PoundError', 'error', text='#error'),
235233

236234
PoundConditionalDirectiveKeyword('PoundIf', 'if', text='#if'),
237235
PoundConditionalDirectiveKeyword('PoundElse', 'else', text='#else'),

0 commit comments

Comments
 (0)