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

GetStringClassPtrGetObjectClassPtr、GetInterfaceInfoClassPtrクラスからエラー出力を排除した。
・GetStaticDefiningStringAsMemberTypeInfoNamesメソッドの実装位置をCClassクラスからProcedureGeneratorクラスに移動した。

File:
1 edited

Legend:

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

    r566 r567  
    698698const CClass *Classes::GetStringClassPtr() const
    699699{
    700     if( !pStringClass ){
     700    if( !pStringClass )
     701    {
    701702        // キャッシュしておく
    702703        pStringClass = this->FindEx( NamespaceScopes( "System" ), "String" );
    703 
    704         if( !pStringClass )
    705         {
    706             compiler.errorMessenger.Output(400, "System.String", cp);
    707             static CClass dummy;
    708             return &dummy;
    709         }
    710         return pStringClass;
    711704    }
    712705    return pStringClass;
     
    714707const CClass *Classes::GetObjectClassPtr() const
    715708{
    716     if( !pObjectClass ){
     709    if( !pObjectClass )
     710    {
    717711        // キャッシュしておく
    718712        pObjectClass = this->FindEx( NamespaceScopes( "System" ), "Object" );
    719 
    720         if( !pObjectClass )
    721         {
    722             compiler.errorMessenger.Output(400, "System.Object", cp);
    723             static CClass dummy;
    724             return &dummy;
    725         }
    726         return pObjectClass;
    727713    }
    728714    return pObjectClass;
     
    730716const CClass *Classes::GetInterfaceInfoClassPtr() const
    731717{
    732     if( !pInterfaceInfo ){
     718    if( !pInterfaceInfo )
     719    {
    733720        // キャッシュしておく
    734721        pInterfaceInfo = this->FindEx( "ActiveBasic.Core.InterfaceInfo" );
    735 
    736         if( !pInterfaceInfo )
    737         {
    738             compiler.errorMessenger.Output(400, "ActiveBasic.Core.InterfaceInfo", cp);
    739             static CClass dummy;
    740             return &dummy;
    741         }
    742         return pInterfaceInfo;
    743722    }
    744723    return pInterfaceInfo;
     
    757736
    758737        result += "\"" + pMember->GetName() + "\"";
    759     }
    760 
    761     return result;
    762 }
    763 std::string CClass::GetStaticDefiningStringAsMemberTypeInfoNames() const
    764 {
    765     std::string result;
    766 
    767     BOOST_FOREACH( const Member *pMember, dynamicMembers )
    768     {
    769         if( result.size() )
    770         {
    771             result += ",";
    772         }
    773 
    774         result += "\"" + compiler.TypeToString( pMember->GetType() ) + "\"";
    775738    }
    776739
Note: See TracChangeset for help on using the changeset viewer.