File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ class UnqualifiedLookupFactory {
161
161
// Classify this declaration.
162
162
// Types are formally members of the metatype.
163
163
DeclContext *whereValueIsMember (const ValueDecl *const member) const {
164
- return dyn_cast <TypeDecl>(member) ? whereTypesAreMembers
165
- : whereNonTypesAreMembers;
164
+ return isa <TypeDecl>(member) ? whereTypesAreMembers
165
+ : whereNonTypesAreMembers;
166
166
}
167
167
void addToResults (const DeclName &Name, bool isCascadingUse,
168
168
NLOptions baseNLOptions, DeclContext *contextForLookup,
@@ -696,7 +696,7 @@ UnqualifiedLookupFactory::lookupInOneDeclContext(
696
696
auto placesToSearch = std::move (r.getValue ().placesToSearch );
697
697
auto isCascadingUse = r.getValue ().isCascadingUse ;
698
698
699
- if (!dyn_cast <DefaultArgumentInitializer>(dc) &&
699
+ if (!isa <DefaultArgumentInitializer>(dc) &&
700
700
addGenericParametersHereAndInEnclosingScopes (lookupContextForThisDecl))
701
701
return None;
702
702
if (placesToSearch.hasValue () && !placesToSearch.getValue ().empty ()) {
You can’t perform that action at this time.
0 commit comments