Changeset 577 in dev
- Timestamp:
- May 8, 2008, 2:05:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/TypeDef.cpp
r542 r577 10 10 { 11 11 } 12 /*13 bool TypeDef::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const std::string &name ) const14 {15 if( GetName() != name ){16 return false;17 }18 return compiler.GetNamespaceSupporter().IsSameAreaNamespace( this->namespaceScopes, namespaceScopes );19 }20 bool TypeDef::IsEqualSymbol( const std::string &fullName ) const21 {22 char AreaName[VN_SIZE] = ""; //オブジェクト変数23 char NestName[VN_SIZE] = ""; //入れ子メンバ24 bool isNest = SplitMemberName( fullName.c_str(), AreaName, NestName );25 26 if( IsEqualSymbol( NamespaceScopes( AreaName ), NestName ) ){27 return true;28 }29 30 if( isNest ){31 // 静的メンバを考慮32 33 char AreaName2[VN_SIZE] = ""; //オブジェクト変数34 char NestName2[VN_SIZE] = ""; //入れ子メンバ35 bool isNest = SplitMemberName( AreaName, AreaName2, NestName2 );36 lstrcat( NestName2, "." );37 lstrcat( NestName2, NestName );38 39 return IsEqualSymbol( NamespaceScopes( AreaName2 ), NestName2 );40 }41 42 return false;43 }*/44 45 46 12 47 13 TypeDefCollection::TypeDefCollection(){
Note:
See TracChangeset
for help on using the changeset viewer.