Ignore:
Timestamp:
Jun 26, 2007, 5:04:29 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jenga/src/smoothie/Variable.cpp

    r174 r192  
    11#include <jenga/include/smoothie/Smoothie.h>
    22#include <jenga/include/smoothie/Class.h>
    3 
    4 bool Variable::IsEqualSymbol( const Symbol &symbol, bool isSupportStaticMember ) const
    5 {
    6     if( GetName() == symbol.GetName()
    7         && NamespaceScopes::IsSameArea( this->namespaceScopes, 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 }
    233
    244
Note: See TracChangeset for help on using the changeset viewer.