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/compiler.h | |
| parent | 8e4c0c35d6c2d0fd754b713441c2eee8f13f87b2 (diff) | |
| parent | 695c2700de54a5fec72ce7214c137a1dc3a02d7b (diff) | |
Merge pull request #155 from tfoleyNV/renaming
Major naming overhaul:
Diffstat (limited to 'source/slang/compiler.h')
| -rw-r--r-- | source/slang/compiler.h | 46 |
1 files changed, 23 insertions, 23 deletions
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<ProgramSyntaxNode> SyntaxNode; + RefPtr<ModuleDecl> 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<RefPtr<ProgramSyntaxNode> > loadedModulesList; + List<RefPtr<ModuleDecl> > loadedModulesList; // Map from the logical name of a module to its definition - Dictionary<String, RefPtr<ProgramSyntaxNode>> mapPathToLoadedModule; + Dictionary<String, RefPtr<ModuleDecl>> mapPathToLoadedModule; // Map from the path of a module file to its definition - Dictionary<String, RefPtr<ProgramSyntaxNode>> mapNameToLoadedModules; + Dictionary<String, RefPtr<ModuleDecl>> mapNameToLoadedModules; CompileRequest(Session* session) @@ -281,7 +281,7 @@ namespace Slang String const& name, Profile profile); - RefPtr<ProgramSyntaxNode> loadModule( + RefPtr<ModuleDecl> loadModule( String const& name, String const& path, String const& source, @@ -291,7 +291,7 @@ namespace Slang String const& path, TokenList const& tokens); - RefPtr<ProgramSyntaxNode> findOrImportModule( + RefPtr<ModuleDecl> findOrImportModule( String const& name, CodePosition const& loc); }; @@ -322,7 +322,7 @@ namespace Slang RefPtr<Scope> slangLanguageScope; RefPtr<Scope> glslLanguageScope; - List<RefPtr<ProgramSyntaxNode>> loadedModuleCode; + List<RefPtr<ModuleDecl>> loadedModuleCode; // @@ -340,27 +340,27 @@ namespace Slang String getGLSLLibraryCode(); // Basic types that we don't want to re-create all the time - RefPtr<ExpressionType> errorType; - RefPtr<ExpressionType> initializerListType; - RefPtr<ExpressionType> overloadedType; + RefPtr<Type> errorType; + RefPtr<Type> initializerListType; + RefPtr<Type> overloadedType; - Dictionary<int, RefPtr<ExpressionType>> builtinTypes; + Dictionary<int, RefPtr<Type>> builtinTypes; Dictionary<String, Decl*> magicDecls; - List<RefPtr<ExpressionType>> canonicalTypes; + List<RefPtr<Type>> 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(); // |
