Skip to content

Commit

Permalink
Swift: rename DispatcherWrapper to VisitorBase
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed May 20, 2022
1 parent da00bf9 commit f5b2c31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions swift/extractor/visitors/VisitorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
namespace codeql {

namespace detail {
class DispatcherWrapper {
class VisitorBase {
protected:
SwiftDispatcher& dispatcher_;

public:
// SwiftDispatcher should outlive this instance
DispatcherWrapper(SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
VisitorBase(SwiftDispatcher& dispatcher) : dispatcher_{dispatcher} {}
};

} // namespace detail
Expand All @@ -27,9 +27,9 @@ class DispatcherWrapper {
// base class for our AST visitors, getting a SwiftDispatcher member and default emission for
// unknown/TBD entities
template <typename CrtpSubclass>
class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::DispatcherWrapper {
class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::VisitorBase {
public:
using DispatcherWrapper::DispatcherWrapper;
using VisitorBase::VisitorBase;

#define DECL(CLASS, PARENT) DEFAULT(Decl, CLASS, PARENT)
#include "swift/AST/DeclNodes.def"
Expand All @@ -50,9 +50,9 @@ class AstVisitorBase : public swift::ASTVisitor<CrtpSubclass>, detail::Dispatche
// base class for our type visitor, getting a SwiftDispatcher member and default emission for
// unknown/TBD types
template <typename CrtpSubclass>
class TypeVisitorBase : public swift::TypeVisitor<CrtpSubclass>, detail::DispatcherWrapper {
class TypeVisitorBase : public swift::TypeVisitor<CrtpSubclass>, detail::VisitorBase {
public:
using DispatcherWrapper::DispatcherWrapper;
using VisitorBase::VisitorBase;

#define TYPE(CLASS, PARENT) DEFAULT(Type, CLASS, PARENT)
#include "swift/AST/TypeNodes.def"
Expand Down

0 comments on commit f5b2c31

Please sign in to comment.