Changeset 598 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
- Timestamp:
- May 10, 2008, 8:16:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
r597 r598 17 17 } 18 18 19 int TypeDefCollection::GetIndex( const NamespaceScopes &namespaceScopes, const std::string &name) const{19 int TypeDefCollection::GetIndex( const Symbol &symbol ) const{ 20 20 int max = (int)(*this).size(); 21 21 for( int i=0; i<max; i++ ){ 22 if( (*this)[i].IsEqualSymbol( namespaceScopes, name) ){22 if( (*this)[i].IsEqualSymbol( symbol ) ){ 23 23 return i; 24 24 } … … 26 26 return -1; 27 27 } 28 int TypeDefCollection::GetIndex( const std::string &fullName ) const{29 char AreaName[VN_SIZE] = ""; //オブジェクト変数30 char NestName[VN_SIZE] = ""; //入れ子メンバ31 bool isNest = SplitMemberName( fullName.c_str(), AreaName, NestName );32 33 return GetIndex( NamespaceScopes( AreaName ), NestName );34 }
Note:
See TracChangeset
for help on using the changeset viewer.