Changeset 588 in dev for trunk


Ignore:
Timestamp:
May 10, 2008, 3:10:57 PM (17 years ago)
Author:
dai_9181
Message:

Delegate::SetSourceIndexメソッドを廃止し、Delegate::GetSourceIndexメソッドを追加。

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

Legend:

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

    r587 r588  
    5757    }
    5858
    59     void SetSourceIndex( int sourceIndex )
     59    int GetSourceIndex() const
    6060    {
    61         this->sourceIndex = sourceIndex;
     61        return sourceIndex;
    6262    }
    6363
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp

    r587 r588  
    221221    Jenga::Common::Strings parameterStrings;
    222222    SplitParameter( dg.GetParamStr(), parameterStrings );
    223     int sourceIndex;
    224     ActiveBasic::Compiler::LexicalAnalyzer::AnalyzeParameter( dg.GetParameters(), parameterStrings, sourceIndex );
    225     dg.SetSourceIndex( sourceIndex );
     223    ActiveBasic::Compiler::LexicalAnalyzer::AnalyzeParameter( dg.GetParameters(), parameterStrings, dg.GetSourceIndex() );
    226224
    227225    // 動的パラメータを作る
     
    235233        if( !compiler.StringToType( dg.GetReturnTypeName(), returnType ) )
    236234        {
    237             compiler.errorMessenger.Output(3,dg.GetReturnTypeName(),sourceIndex);
     235            compiler.errorMessenger.Output(3,dg.GetReturnTypeName(),dg.GetSourceIndex());
    238236        }
    239237        else
Note: See TracChangeset for help on using the changeset viewer.