Ignore:
Timestamp:
May 3, 2008, 6:58:38 PM (16 years ago)
Author:
dai_9181
Message:

UserProcクラスによるコンパイル中関数管理用メソッドを除去(すべてCompilerクラス内で処理するようにした)。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Compiler.cpp

    r536 r537  
    222222}
    223223
     224void Compiler::SetCompilingUserProc( const UserProc *pUserProc )
     225{
     226    this->pCompilingUserProc = pUserProc;
     227
     228    this->SetCompilingClass( pUserProc->GetParentClassPtr() );
     229}
     230
     231void Compiler::StartGlobalAreaCompile()
     232{
     233    ClearCompilingUserProcAndClass();
     234}
     235
    224236void Compiler::StartProcedureCompile( const UserProc *pUserProc )
    225237{
    226238    //コンパイル中の関数
    227     this->pCompilingUserProc = pUserProc;
    228 
    229     //コンパイル中の関数が属するクラス
    230     this->SetCompilingClass( pUserProc->GetParentClassPtr() );
     239    this->SetCompilingUserProc( pUserProc );
    231240
    232241    //コンパイルスタートをクラス管理クラスに追加
    233242    this->GetObjectModule().meta.GetClasses().StartCompile( pUserProc );
    234243
    235     //コンパイル中の関数
    236     UserProc::CompileStartForUserProc( pUserProc );
    237 
    238244    // コンパイル中の関数が属する名前空間
    239245    this->GetNamespaceSupporter().SetLivingNamespaceScopes( pUserProc->GetNamespaceScopes() );
     
    255261    return ( pCompilingUserProc == NULL );
    256262}
     263bool Compiler::IsLocalAreaCompiling()
     264{
     265    return ( pCompilingUserProc != NULL );
     266}
    257267const UserProc &Compiler::GetCompilingUserProc()
    258268{
Note: See TracChangeset for help on using the changeset viewer.