Changeset 449 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- Mar 22, 2008, 1:56:31 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler_Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Delegate.h
r448 r449 11 11 { 12 12 friend Delegates; 13 14 // importされている名前空間 15 NamespaceScopesCollection importedNamespaces; 13 16 14 17 std::string paramStr; … … 26 29 27 30 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Procedure ); 31 ar & BOOST_SERIALIZATION_NVP( importedNamespaces ); 28 32 ar & BOOST_SERIALIZATION_NVP( dynamicParams ); 29 33 } 30 34 31 35 public: 32 Delegate( const NamespaceScopes &namespaceScopes, const std::string &name, Procedure::Kind procKind, const char *paramStr, const std::string &returnTypeName, int sourceIndex )36 Delegate( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const std::string &name, Procedure::Kind procKind, const char *paramStr, const std::string &returnTypeName, int sourceIndex ) 33 37 : Procedure( namespaceScopes, name, procKind, false ) 38 , importedNamespaces( importedNamespaces ) 34 39 , paramStr( paramStr ) 35 40 , returnTypeName( returnTypeName ) -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Delegate.cpp
r448 r449 5 5 void Delegate::RefleshParameterAndReturnType() 6 6 { 7 compiler.GetNamespaceSupporter().SetImportedNamespaces( this->importedNamespaces ); 8 compiler.GetNamespaceSupporter().SetLivingNamespaceScopes( this->GetNamespaceScopes() ); 9 7 10 // パラメータを解析 8 11 params.Analyze( paramStr.c_str(), sourceIndex ); … … 151 154 } 152 155 153 this->Put( new Delegate( namespaceScopes, name, procKind, paramStr, returnTypeName, nowLine ) );156 this->Put( new Delegate( namespaceScopes, importedNamespaces, name, procKind, paramStr, returnTypeName, nowLine ) ); 154 157 } 155 158 }
Note:
See TracChangeset
for help on using the changeset viewer.