Skip to content

Commit 7fbf353

Browse files
committed
Remove __FILE__ et al as keywords.
These were keywords prior to Swift 2, and have only been kept around as keywords to provide a custom error message to rewrite to `#file` et al. It's incorrect to keep them as keywords, and that error should be implemented differently if we care about it.
1 parent 2582d8b commit 7fbf353

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

gyb_syntax_support/Token.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,6 @@ def macro_name(self):
244244
ExprKeyword('Try', 'try'),
245245
ExprKeyword('Throws', 'throws'),
246246

247-
Keyword('__FILE__', '__FILE__'),
248-
Keyword('__LINE__', '__LINE__'),
249-
Keyword('__COLUMN__', '__COLUMN__'),
250-
Keyword('__FUNCTION__', '__FUNCTION__'),
251-
Keyword('__DSO_HANDLE__', '__DSO_HANDLE__'),
252-
253247
# Pattern keywords
254248
PatternKeyword('Wildcard', '_'),
255249

0 commit comments

Comments
 (0)