88namespace codeql {
99
1010namespace detail {
11- class DispatcherWrapper {
11+ class VisitorBase {
1212 protected:
1313 SwiftDispatcher& dispatcher_;
1414
1515 public:
1616 // SwiftDispatcher should outlive this instance
17- DispatcherWrapper (SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
17+ VisitorBase (SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
1818};
1919
2020} // namespace detail
@@ -27,9 +27,9 @@ class DispatcherWrapper {
2727// base class for our AST visitors, getting a SwiftDispatcher member and default emission for
2828// unknown/TBD entities
2929template <typename CrtpSubclass>
30- class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::DispatcherWrapper {
30+ class AstVisitorBase : public swift ::ASTVisitor<CrtpSubclass>, detail::VisitorBase {
3131 public:
32- using DispatcherWrapper::DispatcherWrapper ;
32+ using VisitorBase::VisitorBase ;
3333
3434#define DECL (CLASS, PARENT ) DEFAULT(Decl, CLASS, PARENT)
3535#include " swift/AST/DeclNodes.def"
@@ -50,9 +50,9 @@ class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::Dispatche
5050// base class for our type visitor, getting a SwiftDispatcher member and default emission for
5151// unknown/TBD types
5252template <typename CrtpSubclass>
53- class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::DispatcherWrapper {
53+ class TypeVisitorBase : public swift ::TypeVisitor<CrtpSubclass>, detail::VisitorBase {
5454 public:
55- using DispatcherWrapper::DispatcherWrapper ;
55+ using VisitorBase::VisitorBase ;
5656
5757#define TYPE (CLASS, PARENT ) DEFAULT(Type, CLASS, PARENT)
5858#include " swift/AST/TypeNodes.def"
0 commit comments