Changeset 538 in dev for trunk/ab5.0/abdev
- Timestamp:
- May 3, 2008, 11:50:25 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Class.h
r523 r538 476 476 public: 477 477 Classes() 478 : pCompilingMethod( NULL ) 479 , pStringClass( NULL ) 478 : pStringClass( NULL ) 480 479 , pObjectClass( NULL ) 481 480 , pInterfaceInfo( NULL ) … … 504 503 const CClass *Find( const std::string &fullName ) const; 505 504 506 507 /////////////////////////////508 // 現在コンパイル中の情報509 /////////////////////////////510 private:511 const CMethod *pCompilingMethod;512 public:513 505 void StartCompile( const UserProc *pUserProc ); 514 515 //現在コンパイル中のメソッド情報を取得516 const CMethod *GetNowCompilingMethodInfo(){517 return pCompilingMethod;518 }519 506 520 507 -
trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
r536 r538 1166 1166 } 1167 1167 } 1168 1169 pCompilingMethod = pParentClass->GetDynamicMethodOrInterfaceMethod( pUserProc );1170 if( !pCompilingMethod ){1171 pCompilingMethod = pParentClass->GetStaticMethods().GetMethodPtr( pUserProc );1172 if( !pCompilingMethod ){1173 compiler.errorMessenger.OutputFatalError();1174 }1175 }1176 }1177 else{1178 pCompilingMethod = NULL;1179 1168 } 1180 1169 } -
trunk/ab5.0/abdev/compiler_x86/Compile_Var.cpp
r537 r538 480 480 //Const修飾子のメソッド内でメンバ書き込みアクセスが発生したとき 481 481 //(コンストラクタ、デストラクタ内を除く) 482 const CMethod *pMethod = compiler.GetObjectModule().meta.GetClasses().GetNowCompilingMethodInfo();482 const CMethod *pMethod = &compiler.GetCompilingUserProc().GetMethod(); 483 483 if( isWriteAccess && 484 484 pMethod->IsConst() &&
Note:
See TracChangeset
for help on using the changeset viewer.