Changeset 192 in dev for trunk/jenga/src/smoothie/Variable.cpp
- Timestamp:
- Jun 26, 2007, 5:04:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/src/smoothie/Variable.cpp
r174 r192 1 1 #include <jenga/include/smoothie/Smoothie.h> 2 2 #include <jenga/include/smoothie/Class.h> 3 4 bool Variable::IsEqualSymbol( const Symbol &symbol, bool isSupportStaticMember ) const5 {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 }23 3 24 4
Note:
See TracChangeset
for help on using the changeset viewer.