Changeset 107 in dev for BasicCompiler_Common/src/Namespace.cpp
- Timestamp:
- May 6, 2007, 3:17:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/src/Namespace.cpp
r105 r107 21 21 } 22 22 23 bool NamespaceScopes::IsImported() const 24 { 25 BOOST_FOREACH( const NamespaceScopes &namespaceScopes, Smoothie::Meta::importedNamespaces ){ 26 if( this->IsEqual( namespaceScopes ) ){ 27 return true; 28 } 29 } 30 return false; 31 } 23 32 bool NamespaceScopes::IsLiving() const 24 33 { … … 90 99 lstrcpy( simpleName, fullName + lstrlen( namespaceStr ) + dotLength ); 91 100 } 101 void NamespaceScopesCollection::Imports( const string &namespaceStr ){ 102 NamespaceScopes namespaceScopes( namespaceStr ); 103 if( !Smoothie::Meta::namespaceScopesCollection.IsExist( namespaceScopes ) ){ 104 SetError(64,namespaceStr.c_str(),cp ); 105 return; 106 } 107 108 this->push_back( namespaceScopes ); 109 } 92 110 bool NamespaceScopesCollection::CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection ) 93 111 {
Note:
See TracChangeset
for help on using the changeset viewer.