mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow SemaAnnotator to handle patterns
Add the necessary walking hooks, and fix ReferenceCollector to use it.
This commit is contained in:
@@ -5474,10 +5474,10 @@ private:
|
||||
return shouldWalkInto(S->getSourceRange());
|
||||
}
|
||||
|
||||
std::pair<bool, Pattern *> walkToPatternPre(Pattern *P) {
|
||||
bool walkToPatternPre(Pattern *P) override {
|
||||
if (P == Target.dyn_cast<Pattern *>())
|
||||
AfterTarget = true;
|
||||
return { shouldWalkInto(P->getSourceRange()), P };
|
||||
return shouldWalkInto(P->getSourceRange());
|
||||
}
|
||||
|
||||
bool shouldWalkInto(SourceRange Range) {
|
||||
|
||||
Reference in New Issue
Block a user