Skip to content

Commit 16f49db

Browse files
committed
[gardening] Disambiguate the meaning of Expr::getEndLoc() in the doc comment
"end of the expression" is very confusing. getEndLoc() actually returns the start location of the last token of the expression.
1 parent a51aa91 commit 16f49db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/Expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class alignas(8) Expr {
395395
/// getStartLoc - Return the location of the start of the expression.
396396
SourceLoc getStartLoc() const;
397397

398-
/// \brief Retrieve the location of the end of the expression.
398+
/// \brief Retrieve the location of the last token of the expression.
399399
SourceLoc getEndLoc() const;
400400

401401
/// getLoc - Return the caret location of this expression.

0 commit comments

Comments
 (0)