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 {
27
27
void visit (swift::Pattern* pattern) override { patternVisitor.visit (pattern); }
28
28
void visit (swift::TypeBase* type) override { typeVisitor.visit (type); }
29
29
void visit (swift::TypeRepr* typeRepr, swift::Type type) override {
30
- typeVisitor.visit (*typeRepr, type);
30
+ emit ( typeVisitor.translateTypeRepr (*typeRepr, type) );
31
31
}
32
32
33
33
DeclVisitor declVisitor{*this };
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ void TypeVisitor::visit(swift::TypeBase* type) {
8
8
dispatcher_.emit (TypesTrap{label, type->getString (), canonicalLabel});
9
9
}
10
10
11
- void TypeVisitor::visit (const swift::TypeRepr& typeRepr, swift::Type type) {
11
+ codeql::TypeRepr TypeVisitor::translateTypeRepr (const swift::TypeRepr& typeRepr, swift::Type type) {
12
12
auto entry = dispatcher_.createEntry (typeRepr);
13
13
entry.type = dispatcher_.fetchLabel (type);
14
- dispatcher_. emit ( entry) ;
14
+ return entry;
15
15
}
16
16
17
17
void TypeVisitor::visitProtocolType (swift::ProtocolType* type) {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class TypeVisitor : public TypeVisitorBase<TypeVisitor> {
9
9
using TypeVisitorBase<TypeVisitor>::TypeVisitorBase;
10
10
11
11
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);
13
13
14
14
void visitProtocolType (swift::ProtocolType* type);
15
15
void visitEnumType (swift::EnumType* type);
You can’t perform that action at this time.
0 commit comments