File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,11 @@ class ASTScopeImpl {
210
210
// / node.
211
211
void widenSourceRangeForIgnoredASTNode (ASTNode);
212
212
213
- // InterpolatedStringLiteralExprs and EditorPlaceHolders respond to
214
- // getSourceRange with the starting point. But we might be asked to lookup an
215
- // identifer within one of them. So, find the real source range of them here.
213
+ // / InterpolatedStringLiteralExprs and EditorPlaceHolders respond to
214
+ // / getSourceRange with the starting point. But we might be asked to lookup an
215
+ // / identifer within one of them. So, find the real source range of them here.
216
+ // /
217
+ // / FIXME: Alter how these are parsed so getSourceRange is enough.
216
218
SourceRange getEffectiveSourceRange (ASTNode) const ;
217
219
218
220
public:
Original file line number Diff line number Diff line change @@ -460,6 +460,8 @@ class EffectiveEndFinder : public ASTWalker {
460
460
};
461
461
} // namespace
462
462
463
+ // FIXME: Alter how EditorPlaceHolder and InterpolgatedStringLiteralExpr are
464
+ // parsed so getSourceRange is enough.
463
465
SourceRange ASTScopeImpl::getEffectiveSourceRange (const ASTNode n) const {
464
466
if (const auto *d = n.dyn_cast <Decl *>())
465
467
return d->getSourceRange ();
You can’t perform that action at this time.
0 commit comments