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/compiler.h | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 8fcbd444d..fd40a62f6 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -162,7 +162,7 @@ namespace Slang SlangCompileFlags compileFlags = 0; // The parsed syntax for the translation unit - RefPtr SyntaxNode; + RefPtr SyntaxNode; // The resulting output for the translation unit // @@ -241,13 +241,13 @@ namespace Slang // Modules that have been dynamically loaded via `import` // // This is a list of unique modules loaded, in the order they were encountered. - List > loadedModulesList; + List > loadedModulesList; // Map from the logical name of a module to its definition - Dictionary> mapPathToLoadedModule; + Dictionary> mapPathToLoadedModule; // Map from the path of a module file to its definition - Dictionary> mapNameToLoadedModules; + Dictionary> mapNameToLoadedModules; CompileRequest(Session* session) @@ -281,7 +281,7 @@ namespace Slang String const& name, Profile profile); - RefPtr loadModule( + RefPtr loadModule( String const& name, String const& path, String const& source, @@ -291,7 +291,7 @@ namespace Slang String const& path, TokenList const& tokens); - RefPtr findOrImportModule( + RefPtr findOrImportModule( String const& name, CodePosition const& loc); }; @@ -322,7 +322,7 @@ namespace Slang RefPtr slangLanguageScope; RefPtr glslLanguageScope; - List> loadedModuleCode; + List> loadedModuleCode; // @@ -340,27 +340,27 @@ namespace Slang String getGLSLLibraryCode(); // Basic types that we don't want to re-create all the time - RefPtr errorType; - RefPtr initializerListType; - RefPtr overloadedType; + RefPtr errorType; + RefPtr initializerListType; + RefPtr overloadedType; - Dictionary> builtinTypes; + Dictionary> builtinTypes; Dictionary magicDecls; - List> canonicalTypes; + List> canonicalTypes; void initializeTypes(); - ExpressionType* getBoolType(); - ExpressionType* getFloatType(); - ExpressionType* getDoubleType(); - ExpressionType* getIntType(); - ExpressionType* getUIntType(); - ExpressionType* getVoidType(); - ExpressionType* getBuiltinType(BaseType flavor); - - ExpressionType* getInitializerListType(); - ExpressionType* getOverloadedType(); - ExpressionType* getErrorType(); + Type* getBoolType(); + Type* getFloatType(); + Type* getDoubleType(); + Type* getIntType(); + Type* getUIntType(); + Type* getVoidType(); + Type* getBuiltinType(BaseType flavor); + + Type* getInitializerListType(); + Type* getOverloadedType(); + Type* getErrorType(); // -- cgit v1.2.3