Changeset 640 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Method.cpp
- Timestamp:
- Jun 14, 2008, 12:16:27 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Method.cpp
r639 r640 1 1 #include "stdafx.h" 2 2 3 bool CMethod::Resolve( const ObjectModule &resolver )3 bool CMethod::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors ) 4 4 { 5 if( pUserProc )5 if( this->pUserProc ) 6 6 { 7 if( pUserProc->IsNeedResolve() )7 if( this->pUserProc->IsNeedResolve() ) 8 8 { 9 pUserProc = resolver.meta.GetUserProcs().FindLike( pUserProc ); 9 const UserProc *pTempUserProc = resolver.meta.GetUserProcs().FindLike( this->pUserProc ); 10 if( pTempUserProc ) 11 { 12 this->pUserProc = pTempUserProc; 13 } 14 else 15 { 16 resolveErrors.Add( ResolveError( this->pUserProc->GetRelationalObjectModuleIndex(), this->pUserProc->GetFullName() ) ); 17 } 10 18 } 11 19 } … … 41 49 } 42 50 43 bool DynamicMethod::Resolve( const ObjectModule &resolver )51 bool DynamicMethod::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors ) 44 52 { 45 CMethod::Resolve( resolver );53 CMethod::Resolve( resolver, resolveErrors ); 46 54 47 55 if( this->pInheritsClass ) … … 49 57 if( this->pInheritsClass->IsNeedResolve() ) 50 58 { 51 this->pInheritsClass = resolver.meta.GetClasses().FindLike( pInheritsClass ); 59 const CClass *pTempClass = resolver.meta.GetClasses().FindLike( pInheritsClass ); 60 if( pTempClass ) 61 { 62 this->pInheritsClass = pTempClass; 63 } 64 else 65 { 66 resolveErrors.Add( ResolveError( this->pInheritsClass->GetRelationalObjectModuleIndex(), this->pInheritsClass->GetFullName() ) ); 67 } 52 68 } 53 69 } … … 62 78 } 63 79 64 bool StaticMethod::Resolve( const ObjectModule &resolver )80 bool StaticMethod::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors ) 65 81 { 66 CMethod::Resolve( resolver );82 CMethod::Resolve( resolver, resolveErrors ); 67 83 return true; 68 84 }
Note:
See TracChangeset
for help on using the changeset viewer.