source: dev/trunk/abdev/BasicCompiler_Common/src/VariableImpl.cpp@ 193

Last change on this file since 193 was 193, checked in by dai_9181, 17 years ago
File size: 680 bytes
Line 
1#include <Compiler.h>
2#include <VariableImpl.h>
3
4bool VariableImpl::IsEqualSymbol( const Symbol &symbol, bool isSupportStaticMember ) const
5{
6 if( GetName() == symbol.GetName()
7 && compiler.IsSameAreaNamespace( this->GetNamespaceScopes(), symbol.GetNamespaceScopes() ) )
8 {
9 return true;
10 }
11
12 if( isSupportStaticMember && symbol.GetNamespaceScopes().size() >= 1 )
13 {
14 // 静的メンバを考慮
15 NamespaceScopes namespaceScopes( symbol.GetNamespaceScopes() );
16 string name = namespaceScopes[namespaceScopes.size()-1] + "." + symbol.GetName();
17 namespaceScopes.pop_back();
18
19 return IsEqualSymbol( Symbol( namespaceScopes, name ), false );
20 }
21 return false;
22}
Note: See TracBrowser for help on using the repository browser.