Changeset 199 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Jun 27, 2007, 3:16:11 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Compiler.h
r195 r199 2 2 3 3 #include <CodeGenerator.h> 4 #include <NamespaceSupporter.h> 4 5 #include <MetaImpl.h> 5 6 6 7 class Compiler 7 8 { 9 // ネイティブコード 8 10 NativeCode nativeCode; 11 12 // 名前空間サポート 13 NamespaceSupporter namespaceSupporter; 14 15 // メタ情報 9 16 MetaImpl metaImpl; 10 17 … … 13 20 { 14 21 return nativeCode; 22 } 23 24 NamespaceSupporter &GetNamespaceSupporter() 25 { 26 return namespaceSupporter; 15 27 } 16 28 -
trunk/abdev/BasicCompiler_Common/include/NamespaceSupporter.h
r198 r199 1 1 #pragma once 2 2 3 #include < Compiler.h>3 #include <jenga/include/smoothie/Namespace.h> 4 4 5 5 class NamespaceSupporter … … 20 20 this->importedNamespaces = namespaces; 21 21 } 22 bool ImportsNamespace( const std::string &namespaceStr ) 23 { 24 NamespaceScopes namespaceScopes( namespaceStr ); 25 if( !compiler.GetMeta().GetNamespaces().IsExist( namespaceScopes ) ){ 26 return false; 27 } 28 29 this->importedNamespaces.push_back( namespaceScopes ); 30 31 return true; 32 } 22 bool ImportsNamespace( const std::string &namespaceStr ); 33 23 34 24 NamespaceScopes &GetLivingNamespaceScopes() … … 109 99 static bool CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection ); 110 100 }; 111 extern NamespaceSupporter namespaceSupporter;
Note:
See TracChangeset
for help on using the changeset viewer.