Ignore:
Timestamp:
Aug 7, 2011, 4:30:08 PM (13 years ago)
Author:
イグトランス (egtra)
Message:

Typeクラスを単体テスト可能な状態へ

Location:
branches/egtra/ab5.0/abdev/ab_common
Files:
1 added
17 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/ab_common/ab_common.vcxproj

    r807 r820  
    160160      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
    161161    </ClCompile>
    162     <ClCompile Include="src\Lexical\Class.cpp" />
    163162    <ClCompile Include="src\Lexical\Const.cpp" />
    164163    <ClCompile Include="src\Lexical\DataTable.cpp" />
    165164    <ClCompile Include="src\Lexical\Delegate.cpp" />
    166     <ClCompile Include="src\Lexical\Interface.cpp" />
    167     <ClCompile Include="src\Lexical\Member.cpp" />
    168165    <ClCompile Include="src\Lexical\Meta.cpp" />
    169     <ClCompile Include="src\Lexical\Method.cpp" />
    170     <ClCompile Include="src\Lexical\Namespace.cpp" />
    171     <ClCompile Include="src\Lexical\NamespaceSupporter.cpp" />
    172     <ClCompile Include="src\Lexical\NativeCode.cpp" />
    173166    <ClCompile Include="src\Lexical\ObjectModule.cpp">
    174167      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
     
    183176      </PrecompiledHeader>
    184177    </ClCompile>
    185     <ClCompile Include="src\Lexical\Parameter.cpp" />
    186     <ClCompile Include="src\Lexical\Procedure.cpp" />
    187178    <ClCompile Include="src\Lexical\Source.cpp" />
    188     <ClCompile Include="src\Lexical\Symbol.cpp" />
    189     <ClCompile Include="src\Lexical\Template.cpp" />
    190     <ClCompile Include="src\Lexical\Type.cpp" />
    191179    <ClCompile Include="src\Lexical\TypeDef.cpp" />
    192180    <ClCompile Include="src\Lexical\Variable.cpp" />
  • branches/egtra/ab5.0/abdev/ab_common/ab_common.vcxproj.filters

    r807 r820  
    3737      <Filter>Source Files</Filter>
    3838    </ClCompile>
    39     <ClCompile Include="src\Lexical\Class.cpp">
    40       <Filter>Source Files\Lexical</Filter>
    41     </ClCompile>
    4239    <ClCompile Include="src\Lexical\Const.cpp">
    4340      <Filter>Source Files\Lexical</Filter>
     
    4946      <Filter>Source Files\Lexical</Filter>
    5047    </ClCompile>
    51     <ClCompile Include="src\Lexical\Interface.cpp">
    52       <Filter>Source Files\Lexical</Filter>
    53     </ClCompile>
    54     <ClCompile Include="src\Lexical\Member.cpp">
    55       <Filter>Source Files\Lexical</Filter>
    56     </ClCompile>
    5748    <ClCompile Include="src\Lexical\Meta.cpp">
    58       <Filter>Source Files\Lexical</Filter>
    59     </ClCompile>
    60     <ClCompile Include="src\Lexical\Method.cpp">
    61       <Filter>Source Files\Lexical</Filter>
    62     </ClCompile>
    63     <ClCompile Include="src\Lexical\Namespace.cpp">
    64       <Filter>Source Files\Lexical</Filter>
    65     </ClCompile>
    66     <ClCompile Include="src\Lexical\NamespaceSupporter.cpp">
    67       <Filter>Source Files\Lexical</Filter>
    68     </ClCompile>
    69     <ClCompile Include="src\Lexical\NativeCode.cpp">
    7049      <Filter>Source Files\Lexical</Filter>
    7150    </ClCompile>
     
    7352      <Filter>Source Files\Lexical</Filter>
    7453    </ClCompile>
    75     <ClCompile Include="src\Lexical\Parameter.cpp">
    76       <Filter>Source Files\Lexical</Filter>
    77     </ClCompile>
    78     <ClCompile Include="src\Lexical\Procedure.cpp">
    79       <Filter>Source Files\Lexical</Filter>
    80     </ClCompile>
    8154    <ClCompile Include="src\Lexical\Source.cpp">
    82       <Filter>Source Files\Lexical</Filter>
    83     </ClCompile>
    84     <ClCompile Include="src\Lexical\Symbol.cpp">
    85       <Filter>Source Files\Lexical</Filter>
    86     </ClCompile>
    87     <ClCompile Include="src\Lexical\Template.cpp">
    88       <Filter>Source Files\Lexical</Filter>
    89     </ClCompile>
    90     <ClCompile Include="src\Lexical\Type.cpp">
    9155      <Filter>Source Files\Lexical</Filter>
    9256    </ClCompile>
  • branches/egtra/ab5.0/abdev/ab_common/include/Lexical/Type.h

    r816 r820  
     1#include <boost/foreach.hpp>
    12#pragma once
    23
     
    101102    }
    102103
    103     inline int GetBasicType() const
     104    int GetBasicType() const
    104105    {
    105106        return basicType;
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Class.cpp

    r803 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24#include <algorithm>
    35#include <boost/checked_delete.hpp>
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Interface.cpp

    r750 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35Interface::Interface( const CClass *pInterfaceClass, const Types &actualTypeParameters )
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Member.cpp

    r640 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Meta.cpp

    r803 r820  
    3737{
    3838    // 名前空間
    39     BOOST_FOREACH( NamespaceScopes &namespaceScopes, meta.namespaceScopesCollection )
     39    foreach (NamespaceScopes const &namespaceScopes, meta.namespaceScopesCollection)
    4040    {
    4141        if( !this->namespaceScopesCollection.IsExist( namespaceScopes ) )
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Method.cpp

    r816 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24#include <stdexcept>
    35
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Namespace.cpp

    r810 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24#include <algorithm>
    35
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/NamespaceSupporter.cpp

    r750 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35using namespace ActiveBasic::Common::Lexical;
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/NativeCode.cpp

    r750 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35#define BREAK_EIP(checkEip)  (obp+0x00401000>=checkEip)
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Parameter.cpp

    r708 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35Parameter::Parameter( const std::string &varName, const Type &type, bool isRef, const std::string initValue )
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Procedure.cpp

    r803 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Source.cpp

    r769 r820  
    945945    return true;
    946946}
    947 
    948 int SourceCodePosition::GetRelationalObjectModuleIndex() const
    949 {
    950     if( this->IsNothing() )
    951     {
    952         _ASSERTE( false );
    953         throw;
    954     }
    955 
    956     return relationalObjectModuleIndex;
    957 }
    958 bool SourceCodePosition::IsNothing() const
    959 {
    960     if( this->relationalObjectModuleIndex == -1 && this->pos == -1 )
    961     {
    962         return true;
    963     }
    964 
    965     if( this->relationalObjectModuleIndex == -1 || this->pos == -1 )
    966     {
    967         _ASSERTE( false );
    968         throw;
    969     }
    970 
    971     return false;
    972 }
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Symbol.cpp

    r752 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35using namespace ActiveBasic::Common::Lexical;
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Template.cpp

    r640 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
    24
    35ExpandedTemplateClass::~ExpandedTemplateClass()
  • branches/egtra/ab5.0/abdev/ab_common/src/Lexical/Type.cpp

    r750 r820  
    11#include "stdafx.h"
     2#include <jenga/include/jenga.h>
     3#include <abdev/ab_common/include/ab_common.h>
     4#include "Lexical/Type.h"
    25
    36const int Type::basicTypeList[] = {
Note: See TracChangeset for help on using the changeset viewer.