source: dev/trunk/abdev/BasicCompiler_Common/Variable.cpp@ 161

Last change on this file since 161 was 140, checked in by dai_9181, 17 years ago

traceログ機能を搭載
動的メンバをstl::vectorにまとめた
シンボルをクラス化した

File size: 641 bytes
Line 
1#include "common.h"
2
3bool Variable::IsEqualSymbol( const Symbol &symbol, bool isSupportStaticMember ) const
4{
5 if( GetName() == symbol.GetName()
6 && NamespaceScopes::IsSameArea( this->namespaceScopes, symbol.GetNamespaceScopes() ) )
7 {
8 return true;
9 }
10
11 if( isSupportStaticMember && symbol.GetNamespaceScopes().size() >= 1 )
12 {
13 // 静的メンバを考慮
14 NamespaceScopes namespaceScopes( symbol.GetNamespaceScopes() );
15 string name = namespaceScopes[namespaceScopes.size()-1] + "." + symbol.GetName();
16 namespaceScopes.pop_back();
17
18 return IsEqualSymbol( Symbol( namespaceScopes, name ), false );
19 }
20 return false;
21}
Note: See TracBrowser for help on using the repository browser.