Skip to content

Commit fd3e79b

Browse files
committed
[AST] In NameLookup.cpp avoid wrapping functions in namespaces
1 parent 9405f1e commit fd3e79b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/AST/NameLookup.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define DEBUG_TYPE "namelookup"
3838

3939
using namespace swift;
40+
using namespace swift::namelookup;
4041

4142
void VisibleDeclConsumer::anchor() {}
4243
void VectorDeclConsumer::anchor() {}
@@ -2695,9 +2696,6 @@ swift::getDirectlyInheritedNominalTypeDecls(
26952696
return result;
26962697
}
26972698

2698-
namespace swift {
2699-
namespace namelookup {
2700-
27012699
void FindLocalVal::checkPattern(const Pattern *Pat, DeclVisibilityKind Reason) {
27022700
switch (Pat->getKind()) {
27032701
case PatternKind::Tuple:
@@ -2885,6 +2883,3 @@ void FindLocalVal::visitCatchStmt(CatchStmt *S) {
28852883
checkPattern(S->getErrorPattern(), DeclVisibilityKind::LocalVariable);
28862884
visit(S->getBody());
28872885
}
2888-
2889-
} // end namespace namelookup
2890-
} // end namespace swift

0 commit comments

Comments
 (0)