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/token.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/token.h') diff --git a/source/slang/token.h b/source/slang/token.h index f177eb512..f29f2b4c6 100644 --- a/source/slang/token.h +++ b/source/slang/token.h @@ -26,7 +26,7 @@ typedef unsigned int TokenFlags; class Token { public: - TokenType Type = TokenType::Unknown; + TokenType type = TokenType::Unknown; String Content; CodePosition Position; TokenFlags flags = 0; @@ -34,7 +34,7 @@ public: Token(TokenType type, const String & content, int line, int col, int pos, String fileName, TokenFlags flags = 0) : flags(flags) { - Type = type; + type = type; Content = content; Position = CodePosition(line, col, pos, fileName); } -- cgit v1.2.3