Ignore:
Timestamp:
May 1, 2008, 11:46:43 PM (17 years ago)
Author:
dai_9181
Message:

デリゲート収集コードの実装をLexicalAnalyzerクラスに移動した。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Delegate.h

    r524 r525  
    11#pragma once
    2 
    3 class Delegates;
    42
    53class Delegate
     
    75    , public Jenga::Common::ObjectInHashmap<Delegate>
    86{
    9     friend Delegates;
    10 
    117    // importされている名前空間
    128    NamespaceScopesCollection importedNamespaces;
     
    4339    }
    4440
     41    const std::string &GetParamStr() const
     42    {
     43        return paramStr;
     44    }
     45    const std::string &GetReturnTypeName() const
     46    {
     47        return returnTypeName;
     48    }
     49
    4550    void RefleshParameterAndReturnType();
    4651
     
    6166    bool IsSimilar( const Delegate &dgt ) const;
    6267};
    63 
    64 class Delegates : public Jenga::Common::Hashmap<Delegate>
    65 {
    66 public:
    67     void Collect( const BasicSource &source );
    68     void GenerateSourceCode( std::string &destSource );
    69     void RefleshParameterAndReturnType();
    70 };
     68typedef Jenga::Common::Hashmap<Delegate> Delegates;
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/LexicalAnalyzer.h

    r511 r525  
    3030    static UserProc* ParseUserProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, char *buffer,int nowLine,bool isVirtual,CClass *pobj_c, bool isStatic, char *interfaceName = NULL );
    3131    static void CollectProcedures( const BasicSource &source, UserProcs &userProcs, DllProcs &dllProcs );
     32
     33    // デリゲートを収集する
     34    static void CollectDelegates( const BasicSource &source, Delegates &delegates );
     35    static std::string GenerateDelegatesSourceCode( const Delegates &delegates );
     36    static void RefleshDelegatesParameterAndReturnType( Delegates &delegates );
    3237};
    3338
Note: See TracChangeset for help on using the changeset viewer.