Skip to content

Commit d9f5001

Browse files
committed
[ASTGen] Fix location of MagicIdentifierLiteralExpr
It should be the location of '#'.
1 parent 9fc8bba commit d9f5001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ASTGen/Sources/ASTGen/BuiltinPound.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extension ASTGenVisitor {
166166
return BridgedMagicIdentifierLiteralExpr.createParsed(
167167
self.ctx,
168168
kind: kind,
169-
loc: self.generateSourceLoc(node.macroName)
169+
loc: self.generateSourceLoc(node.pound)
170170
)
171171
}
172172

0 commit comments

Comments
 (0)