Changeset 143 for branches/easy compiler/USourceCode.pas
- Timestamp:
- Jan 16, 2018, 3:40:08 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/easy compiler/USourceCode.pas
r142 r143 36 36 37 37 TSourceTypes = class(TObjectList) 38 Parent: TSourceTypes; 38 39 function AddNew(Name: string; ClassType: TSourceValueClass): TSourceType; 39 40 function Search(Name: string): TSourceType; … … 50 51 51 52 TSourceVariables = class(TObjectList) 53 Parent: TSourceVariables; 52 54 function AddNew(Name: string; ValueType: TSourceType): TSourceVariable; 53 55 function Search(Name: string): TSourceVariable; … … 107 109 108 110 TSourceConstants = class(TObjectList) 111 Parent: TSourceConstants; 109 112 function AddNewString(Value: string; Name: string = ''): TSourceConstant; 110 113 function AddNewInteger(Value: Integer; Name: string = ''): TSourceConstant; … … 141 144 procedure InitFunctions; 142 145 public 146 Functions: TSourceFunctions; 143 147 Types: TSourceTypes; 144 148 Variables: TSourceVariables; 145 149 Constants: TSourceConstants; 146 Functions: TSourceFunctions;147 150 Main: TSourceBeginEnd; 148 151 constructor Create; … … 186 189 Break; 187 190 end; 191 if not Assigned(Result) and Assigned(Parent) then 192 Result := Parent.Search(Name); 188 193 end; 189 194 … … 278 283 Break; 279 284 end; 285 if not Assigned(Result) and Assigned(Parent) then 286 Result := Parent.Search(Name); 280 287 end; 281 288 … … 312 319 Break; 313 320 end; 321 if not Assigned(Result) and Assigned(Parent) then 322 Result := Parent.Search(Name); 314 323 end; 315 324
Note:
See TracChangeset
for help on using the changeset viewer.