Skip to content

Commit 646870d

Browse files
committed
Stop parsing into PoundDsohandleExprSyntax.
The general macro production works. We can't implement this as a macro just yet, though.
1 parent 0db788c commit 646870d

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

Sources/SwiftParser/Expressions.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,6 @@ extension Parser {
10591059
poundColumn: tok,
10601060
arena: self.arena
10611061
))
1062-
case (.poundDsohandleKeyword, let handle)?:
1063-
let tok = self.eat(handle)
1064-
return RawExprSyntax(RawPoundDsohandleExprSyntax(
1065-
poundDsohandle: tok,
1066-
arena: self.arena
1067-
))
10681062
case (.__dso_handle__Keyword, let handle)?:
10691063
let tok = self.eat(handle)
10701064
return RawExprSyntax(RawPoundDsohandleExprSyntax(

Sources/SwiftParser/Lexer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,6 @@ extension Lexer.Cursor {
15441544
case "fileID": kind = .poundFileIDKeyword
15451545
case "filePath": kind = .poundFilePathKeyword
15461546
case "function": kind = .poundFunctionKeyword
1547-
case "dsohandle": kind = .poundDsohandleKeyword
15481547
case "assert": kind = .poundAssertKeyword
15491548
case "sourceLocation": kind = .poundSourceLocationKeyword
15501549
case "warning": kind = .poundWarningKeyword

Sources/SwiftParser/RawTokenKindSubset.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,6 @@ enum PrimaryExpressionStart: RawTokenKindSubset {
739739
case period
740740
case pound
741741
case poundColorLiteralKeyword
742-
case poundDsohandleKeyword
743742
case poundFileIDKeyword
744743
case poundFileKeyword
745744
case poundFileLiteralKeyword
@@ -777,7 +776,6 @@ enum PrimaryExpressionStart: RawTokenKindSubset {
777776
case .period: self = .period
778777
case .pound: self = .pound
779778
case .poundColorLiteralKeyword: self = .poundColorLiteralKeyword
780-
case .poundDsohandleKeyword: self = .poundDsohandleKeyword
781779
case .poundFileIDKeyword: self = .poundFileIDKeyword
782780
case .poundFileKeyword: self = .poundFileKeyword
783781
case .poundFileLiteralKeyword: self = .poundFileLiteralKeyword
@@ -818,7 +816,6 @@ enum PrimaryExpressionStart: RawTokenKindSubset {
818816
case .period: return .period
819817
case .pound: return .pound
820818
case .poundColorLiteralKeyword: return .poundColorLiteralKeyword
821-
case .poundDsohandleKeyword: return .poundDsohandleKeyword
822819
case .poundFileIDKeyword: return .poundFileIDKeyword
823820
case .poundFileKeyword: return .poundFileKeyword
824821
case .poundFileLiteralKeyword: return .poundFileLiteralKeyword

0 commit comments

Comments
 (0)