Ignore:
Timestamp:
May 6, 2007, 3:17:56 PM (17 years ago)
Author:
dai_9181
Message:

Importsステートメントを導入した。実装は作り途中。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/include/Namespace.h

    r105 r107  
    7070    }
    7171
    72     bool IsUsing() const
    73     {
    74         // TODO: 実装
    75         return false;
    76     }
     72    bool IsImported() const;
    7773
    7874    bool IsLiving() const;
     
    9894            if( baseNamespaceScopes.size() ){
    9995                // 名前空間の判断が必要なとき
    100                 if( baseNamespaceScopes.IsUsing()
     96                if( baseNamespaceScopes.IsImported()
    10197                    || baseNamespaceScopes.IsLiving() ){
    10298                    // Using指定があるとき
     
    134130    void SplitNamespace( const char *fullName, char *namespaceStr, char *simpleName ) const;
    135131
     132    void Imports( const string &namespaceStr );
     133
    136134    static bool CollectNamespaces( const char *source, NamespaceScopesCollection &namespaceScopesCollection );
    137135};
Note: See TracChangeset for help on using the changeset viewer.