Skip to content

Commit f5b2c31

Browse files
committed
Swift: rename DispatcherWrapper to VisitorBase
1 parent da00bf9 commit f5b2c31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

swift/extractor/visitors/VisitorBase.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
namespace codeql {
99

1010
namespace 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
2929
template <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
5252
template <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

Comments
 (0)