We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FuncDecl::getSourceRange
1 parent e0ceb85 commit 84febf6Copy full SHA for 84febf6
lib/AST/Decl.cpp
@@ -11482,15 +11482,8 @@ SourceRange FuncDecl::getSourceRange() const {
11482
return SourceRange();
11483
11484
SourceLoc endLoc = getOriginalBodySourceRange().End;
11485
- if (endLoc.isInvalid()) {
11486
- if (isa<AccessorDecl>(this))
11487
- return startLoc;
11488
-
11489
- if (getBodyKind() == BodyKind::Synthesize)
11490
- return SourceRange();
11491
+ if (endLoc.isInvalid())
11492
endLoc = getGenericTrailingWhereClauseSourceRange().End;
11493
- }
11494
if (endLoc.isInvalid())
11495
endLoc = getResultTypeSourceRange().End;
11496
0 commit comments