File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class SwiftVisitor : private SwiftDispatcher {
2727 void visit (swift::Pattern* pattern) override { patternVisitor.visit (pattern); }
2828 void visit (swift::TypeBase* type) override { typeVisitor.visit (type); }
2929 void visit (swift::TypeRepr* typeRepr, swift::Type type) override {
30- typeVisitor.visit (*typeRepr, type);
30+ emit ( typeVisitor.translateTypeRepr (*typeRepr, type) );
3131 }
3232
3333 DeclVisitor declVisitor{*this };
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ void TypeVisitor::visit(swift::TypeBase* type) {
88 dispatcher_.emit (TypesTrap{label, type->getString (), canonicalLabel});
99}
1010
11- void TypeVisitor::visit (const swift::TypeRepr& typeRepr, swift::Type type) {
11+ codeql::TypeRepr TypeVisitor::translateTypeRepr (const swift::TypeRepr& typeRepr, swift::Type type) {
1212 auto entry = dispatcher_.createEntry (typeRepr);
1313 entry.type = dispatcher_.fetchLabel (type);
14- dispatcher_. emit ( entry) ;
14+ return entry;
1515}
1616
1717void TypeVisitor::visitProtocolType (swift::ProtocolType* type) {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class TypeVisitor : public TypeVisitorBase<TypeVisitor> {
99 using TypeVisitorBase<TypeVisitor>::TypeVisitorBase;
1010
1111 void visit (swift::TypeBase* type);
12- void visit (const swift::TypeRepr& typeRepr, swift::Type type);
12+ codeql::TypeRepr translateTypeRepr (const swift::TypeRepr& typeRepr, swift::Type type);
1313
1414 void visitProtocolType (swift::ProtocolType* type);
1515 void visitEnumType (swift::EnumType* type);
You can’t perform that action at this time.
0 commit comments