Skip to content

Commit e64ebad

Browse files
author
David Ungar
committed
Add explanation.
1 parent 92fd649 commit e64ebad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/swift/AST/Expr.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,10 @@ class InterpolatedStringLiteralExpr : public LiteralExpr {
954954
/// Points at the beginning quote.
955955
SourceLoc Loc;
956956
/// Points at the ending quote.
957-
/// Needed for the upcoming ASTScope subsystem because lookups can be targeted
958-
/// to inside an InterpolatedStringLiteralExpr.
957+
/// Needed for the upcoming \c ASTScope subsystem because lookups can be
958+
/// targeted to inside an \c InterpolatedStringLiteralExpr. It would be nicer
959+
/// to use \c EndLoc for this value, but then \c Lexer::getLocForEndOfToken()
960+
/// would not work for \c stringLiteral->getEndLoc().
959961
SourceLoc TrailingQuoteLoc;
960962
TapExpr *AppendingExpr;
961963
Expr *SemanticExpr;

0 commit comments

Comments
 (0)