Ignore:
Timestamp:
Apr 29, 2007, 2:34:04 AM (17 years ago)
Author:
dai_9181
Message:

名前空間機能をクラスに適用。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Procedure.cpp

    r101 r102  
    512512bool GlobalProc::IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const
    513513{
    514     if( namespaceScopes.size() ){
    515         if( GetNamespaceScopes().IsCoverd( namespaceScopes ) ){
    516             if( GetName() == name ){
    517                 return true;
    518             }
    519         }
    520     }
    521     else{
    522         if( GetNamespaceScopes().size() ){
    523             // 名前空間の判断が必要なとき
    524             if( !GetNamespaceScopes().IsUsing()
    525                 && !GetNamespaceScopes().IsLiving() ){
    526                 // この名前空間は暗黙的に参照できないとき
    527                 return false;
    528             }
    529         }
    530         else{
    531             if( GetName() == name ){
    532                 return true;
    533             }
    534         }
    535     }
    536 
    537     return false;
     514    if( GetName() != name ){
     515        return false;
     516    }
     517
     518    return NamespaceScopes::IsSameArea( GetNamespaceScopes(), namespaceScopes );
    538519}
    539520bool GlobalProc::IsEqualSymbol( const GlobalProc &globalProc ) const
Note: See TracChangeset for help on using the changeset viewer.