8
8
namespace codeql {
9
9
10
10
namespace detail {
11
- class DispatcherWrapper {
11
+ class VisitorBase {
12
12
protected:
13
13
SwiftDispatcher& dispatcher_;
14
14
15
15
public:
16
16
// SwiftDispatcher should outlive this instance
17
- DispatcherWrapper (SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
17
+ VisitorBase (SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
18
18
};
19
19
20
20
} // namespace detail
@@ -27,9 +27,9 @@ class DispatcherWrapper {
27
27
// base class for our AST visitors, getting a SwiftDispatcher member and default emission for
28
28
// unknown/TBD entities
29
29
template <typename CrtpSubclass>
30
- class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::DispatcherWrapper {
30
+ class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::VisitorBase {
31
31
public:
32
- using DispatcherWrapper::DispatcherWrapper ;
32
+ using VisitorBase::VisitorBase ;
33
33
34
34
#define DECL (CLASS, PARENT ) DEFAULT(Decl, CLASS, PARENT)
35
35
#include " swift/AST/DeclNodes.def"
@@ -50,9 +50,9 @@ class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::Dispatche
50
50
// base class for our type visitor, getting a SwiftDispatcher member and default emission for
51
51
// unknown/TBD types
52
52
template <typename CrtpSubclass>
53
- class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::DispatcherWrapper {
53
+ class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::VisitorBase {
54
54
public:
55
- using DispatcherWrapper::DispatcherWrapper ;
55
+ using VisitorBase::VisitorBase ;
56
56
57
57
#define TYPE (CLASS, PARENT ) DEFAULT(Type, CLASS, PARENT)
58
58
#include " swift/AST/TypeNodes.def"
0 commit comments