Ignore:
Timestamp:
Oct 20, 2010, 11:16:02 AM (14 years ago)
Author:
george
Message:
  • Fixed: Searching variable types in other modules.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/USourceCode.pas

    r71 r73  
    297297    function SearchVariable(Name: string; Outside: Boolean): TVariable; virtual;
    298298    function SearchConstant(Name: string; Outside: Boolean): TConstant; virtual;
    299     function SearchType(Name: string; Outside: Boolean): TType; virtual;
     299    function SearchType(AName: string; Outside: Boolean): TType; virtual;
    300300    function SearchFunction(Name: string; Outside: Boolean): TFunction; virtual;
    301301    constructor Create;
     
    759759end;
    760760
    761 function TModule.SearchType(Name: string; Outside: Boolean): TType;
    762 var
    763   I: Integer;
    764 begin
    765   Result := Body.Types.Search(Name, Outside);
     761function TModule.SearchType(AName: string; Outside: Boolean): TType;
     762var
     763  I: Integer;
     764begin
     765  Result := Body.Types.Search(AName, Outside);
    766766
    767767  if not Assigned(Result) and Outside then begin
     
    770770      with TUsedModule(UsedModules[I]) do
    771771        with Module do
    772         Result := SearchType(Name, False);
     772        Result := SearchType(AName, False);
    773773      Inc(I);
    774774    end;
Note: See TracChangeset for help on using the changeset viewer.