Last change
on this file since 146 was 140, checked in by dai_9181, 18 years ago |
traceログ機能を搭載
動的メンバをstl::vectorにまとめた
シンボルをクラス化した
|
File size:
641 bytes
|
Rev | Line | |
---|
[103] | 1 | #include "common.h"
|
---|
| 2 |
|
---|
[140] | 3 | bool Variable::IsEqualSymbol( const Symbol &symbol, bool isSupportStaticMember ) const
|
---|
[103] | 4 | {
|
---|
[140] | 5 | if( GetName() == symbol.GetName()
|
---|
| 6 | && NamespaceScopes::IsSameArea( this->namespaceScopes, symbol.GetNamespaceScopes() ) )
|
---|
| 7 | {
|
---|
[103] | 8 | return true;
|
---|
| 9 | }
|
---|
| 10 |
|
---|
[140] | 11 | if( isSupportStaticMember && symbol.GetNamespaceScopes().size() >= 1 )
|
---|
| 12 | {
|
---|
[103] | 13 | // 静的メンバを考慮
|
---|
[140] | 14 | NamespaceScopes namespaceScopes( symbol.GetNamespaceScopes() );
|
---|
| 15 | string name = namespaceScopes[namespaceScopes.size()-1] + "." + symbol.GetName();
|
---|
| 16 | namespaceScopes.pop_back();
|
---|
[103] | 17 |
|
---|
[140] | 18 | return IsEqualSymbol( Symbol( namespaceScopes, name ), false );
|
---|
[103] | 19 | }
|
---|
| 20 | return false;
|
---|
| 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.