diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-08-09 11:20:09 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-09 11:20:09 -0700 |
| commit | 6e4830f4d74adef0a47c6503d84dc114240fafa3 (patch) | |
| tree | 4f549da8c05be186f12442565389d9f3df44c6d7 /source/slang/visitor.h | |
| parent | 8e4c0c35d6c2d0fd754b713441c2eee8f13f87b2 (diff) | |
| parent | 695c2700de54a5fec72ce7214c137a1dc3a02d7b (diff) | |
Merge pull request #155 from tfoleyNV/renaming
Major naming overhaul:
Diffstat (limited to 'source/slang/visitor.h')
| -rw-r--r-- | source/slang/visitor.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/slang/visitor.h b/source/slang/visitor.h index 7000927c7..59c5772f2 100644 --- a/source/slang/visitor.h +++ b/source/slang/visitor.h @@ -10,7 +10,7 @@ namespace Slang { // -// Type Visitors +// type Visitors // struct ITypeVisitor @@ -27,7 +27,7 @@ struct ITypeVisitor template<typename Derived, typename Result = void, typename Base = ITypeVisitor> struct TypeVisitor : Base { - Result dispatch(ExpressionType* type) + Result dispatch(Type* type) { Result result; type->accept(this, &result); @@ -56,7 +56,7 @@ struct TypeVisitor : Base template<typename Derived, typename Base> struct TypeVisitor<Derived,void,Base> : Base { - void dispatch(ExpressionType* type) + void dispatch(Type* type) { type->accept(this, 0); } @@ -83,7 +83,7 @@ struct TypeVisitor<Derived,void,Base> : Base template<typename Derived, typename Arg, typename Base = ITypeVisitor> struct TypeVisitorWithArg : Base { - void dispatch(ExpressionType* type, Arg const& arg) + void dispatch(Type* type, Arg const& arg) { type->accept(this, (void*)&arg); } @@ -125,7 +125,7 @@ struct IExprVisitor template<typename Derived, typename Result = void> struct ExprVisitor : IExprVisitor { - Result dispatch(ExpressionSyntaxNode* expr) + Result dispatch(Expr* expr) { Result result; expr->accept(this, &result); @@ -154,7 +154,7 @@ struct ExprVisitor : IExprVisitor template<typename Derived> struct ExprVisitor<Derived,void> : IExprVisitor { - void dispatch(ExpressionSyntaxNode* expr) + void dispatch(Expr* expr) { expr->accept(this, 0); } @@ -181,7 +181,7 @@ struct ExprVisitor<Derived,void> : IExprVisitor template<typename Derived, typename Arg> struct ExprVisitorWithArg : IExprVisitor { - void dispatch(ExpressionSyntaxNode* obj, Arg const& arg) + void dispatch(Expr* obj, Arg const& arg) { obj->accept(this, (void*)&arg); } @@ -223,7 +223,7 @@ struct IStmtVisitor template<typename Derived, typename Result = void> struct StmtVisitor : IStmtVisitor { - Result dispatch(StatementSyntaxNode* stmt) + Result dispatch(Stmt* stmt) { Result result; stmt->accept(this, &result); @@ -252,7 +252,7 @@ struct StmtVisitor : IStmtVisitor template<typename Derived> struct StmtVisitor<Derived,void> : IStmtVisitor { - void dispatch(StatementSyntaxNode* stmt) + void dispatch(Stmt* stmt) { stmt->accept(this, 0); } |
