From 695c2700de54a5fec72ce7214c137a1dc3a02d7b Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 9 Aug 2017 10:13:40 -0700 Subject: Major naming overhaul: - `ExpressionSyntaxNode` becomes `Expr` - `StatementSyntaxNode` becomes `Stmt` - `StructSyntaxNode` becomes `StructDecl` - `ProgramSyntaxNode` becomes `ModuleDecl` - `ExpressionType` becomes `Type` - Existing fields names `Type` become `type` - There might be some collateral damage here if there were, e.g., `enum`s named `Type`, but I can live with that for now and fix those up as a I see them --- source/slang/visitor.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/slang/visitor.h') 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 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 struct TypeVisitor : Base { - void dispatch(ExpressionType* type) + void dispatch(Type* type) { type->accept(this, 0); } @@ -83,7 +83,7 @@ struct TypeVisitor : Base template 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 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 struct ExprVisitor : IExprVisitor { - void dispatch(ExpressionSyntaxNode* expr) + void dispatch(Expr* expr) { expr->accept(this, 0); } @@ -181,7 +181,7 @@ struct ExprVisitor : IExprVisitor template 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 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 struct StmtVisitor : IStmtVisitor { - void dispatch(StatementSyntaxNode* stmt) + void dispatch(Stmt* stmt) { stmt->accept(this, 0); } -- cgit v1.2.3