File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -802,16 +802,17 @@ ASTBuilder::findDeclContext(const Demangle::NodePointer &node) {
802
802
return nullptr ;
803
803
}
804
804
805
+ // Do some special logic for foreign type declarations.
806
+ if (privateDiscriminator.empty ()) {
807
+ if (auto foreignModuleKind = getForeignModuleKind (node->getChild (0 ))) {
808
+ return findForeignTypeDecl (name, relatedEntityKind,
809
+ foreignModuleKind.getValue (),
810
+ node->getKind ());
811
+ }
812
+ }
813
+
805
814
DeclContext *dc = findDeclContext (node->getChild (0 ));
806
815
if (!dc) {
807
- // Do some backup logic for foreign type declarations.
808
- if (privateDiscriminator.empty ()) {
809
- if (auto foreignModuleKind = getForeignModuleKind (node->getChild (0 ))) {
810
- return findForeignTypeDecl (name, relatedEntityKind,
811
- foreignModuleKind.getValue (),
812
- node->getKind ());
813
- }
814
- }
815
816
return nullptr ;
816
817
}
817
818
You can’t perform that action at this time.
0 commit comments