Changeset 108 in dev for BasicCompiler_Common/Procedure.h


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

関数、クラスメソッドにImports機構を適用。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Procedure.h

    r101 r108  
    222222
    223223    virtual const NamespaceScopes &GetNamespaceScopes() const;
     224    virtual const NamespaceScopesCollection &GetImportedNamespaces() const;
    224225    virtual bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const;
    225226
     
    257258{
    258259    const NamespaceScopes namespaceScopes;
     260    const NamespaceScopesCollection importedNamespaces;
    259261public:
    260262    // ハッシュリスト用
    261263    GlobalProc *pNextData;
    262264
    263     GlobalProc( const NamespaceScopes &namespaceScopes, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ):
     265    GlobalProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ):
    264266      UserProc( name, kind, isMacro, isCdecl, isExport ),
    265267      namespaceScopes( namespaceScopes ),
     268      importedNamespaces( importedNamespaces ),
    266269      pNextData( NULL )
    267270    {}
    268271    ~GlobalProc(){}
    269 
     272/*
    270273    GlobalProc *Create( const NamespaceScopes &namespaceScopes, char *buffer,int nowLine );
    271274    bool AddGlobalProc( const NamespaceScopes &namespaceScopes, char *buffer,int nowLine );
    272 
     275*/
    273276    virtual const NamespaceScopes &GetNamespaceScopes() const
    274277    {
    275278        return namespaceScopes;
     279    }
     280    virtual const NamespaceScopesCollection &GetImportedNamespaces() const
     281    {
     282        return importedNamespaces;
    276283    }
    277284
Note: See TracChangeset for help on using the changeset viewer.