Changeset 137 in dev for BasicCompiler_Common/src


Ignore:
Timestamp:
Jun 8, 2007, 3:11:47 AM (17 years ago)
Author:
dai_9181
Message:

アクセシビリティ周りをリファクタリングした。

Location:
BasicCompiler_Common/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/src/Member.cpp

    r136 r137  
    77#include <Member.h>
    88
    9 CMember::CMember( CClass *pobj_c, DWORD access, bool isConst, bool isRef, char *buffer, int nowLine ){
     9CMember::CMember( CClass *pobj_c, Prototype::Accessibility accessibility, bool isConst, bool isRef, char *buffer, int nowLine )
     10    : MemberPrototype( accessibility )
     11{
    1012    extern int cp;
    1113
     
    1416    char init_buf[VN_SIZE];
    1517    char constract_parameter[VN_SIZE];
    16     GetDimentionFormat(buffer,VarName,SubScripts,*this,init_buf,constract_parameter);
     18    GetDimentionFormat(buffer,VarName,SubScripts,type,init_buf,constract_parameter);
    1719
    1820    //重複チェック
     
    2325    //メンバ名
    2426    name = VarName;
    25 
    26     //アクセス権
    27     dwAccess=access;
    2827
    2928    //定数扱いかどうか
     
    4140    source_code_address=nowLine;
    4241}
    43 CMember::CMember(CMember &member):
    44     Type( member )
     42CMember::CMember(CMember &member)
     43    : MemberPrototype( member.GetAccessibility() )
     44    , name( member.GetName() )
     45    , type( member.GetType() )
     46    , isConst( member.IsConst() )
    4547{
    46 
    47     //name
    48     name = member.name;
    49 
    50     //定数扱いかどうか
    51     isConst = member.isConst;
    52 
    5348    //SubScripts
    5449    memcpy(SubScripts,member.SubScripts,MAX_ARRAYDIM*sizeof(int));
     
    8479                temporary,
    8580                member->SubScripts,
    86                 *member,
     81                member->GetType(),
    8782                member->InitBuf,
    8883                member->ConstractParameter,
  • BasicCompiler_Common/src/Method.cpp

    r136 r137  
    1414}
    1515
    16 void Methods::Add( UserProc *pUserProc,DWORD dwAccess, bool isConst, bool isAbstract, bool isVirtual ){
    17     CMethod *pMethod = new DynamicMethod( pUserProc, dwAccess, isAbstract, isVirtual, isConst );
     16void Methods::Add( UserProc *pUserProc,Prototype::Accessibility accessibility, bool isConst, bool isAbstract, bool isVirtual ){
     17    CMethod *pMethod = new DynamicMethod( pUserProc, accessibility, isAbstract, isVirtual, isConst );
    1818    this->push_back( pMethod );
    1919    pUserProc->SetMethod( pMethod );
    2020}
    21 void Methods::AddStatic(UserProc *pUserProc,DWORD dwAccess){
    22     CMethod *pMethod = new StaticMethod( pUserProc, dwAccess );
     21void Methods::AddStatic(UserProc *pUserProc, Prototype::Accessibility accessibility ){
     22    CMethod *pMethod = new StaticMethod( pUserProc, accessibility );
    2323    this->push_back( pMethod );
    2424    pUserProc->SetMethod( pMethod );
Note: See TracChangeset for help on using the changeset viewer.