Changeset 19 for trunk/Compiler/USourceCode.pas
- Timestamp:
- Nov 9, 2010, 11:19:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/USourceCode.pas
r8 r19 7 7 8 8 uses 9 SysUtils, Variants, Classes, Dialogs ;9 SysUtils, Variants, Classes, Dialogs, SpecializedObjectList; 10 10 11 11 type … … 165 165 {$I 'GenericObjectList.inc'} 166 166 167 TCommonBlockSection = (cbsVariable, cbsType, cbsConstant); 168 167 169 TCommonBlock = class 168 170 Name: string; … … 173 175 Variables: TVariableList; 174 176 Functions: TFunctionList; 177 Order: TListObject; 175 178 Code: TBeginEnd; 176 179 constructor Create; virtual; … … 186 189 Size: Integer; 187 190 UsedType: TType; 191 Exported: Boolean; 188 192 Visibility: TTypeVisibility; 189 193 end; … … 679 683 Code.Parent := Self; 680 684 Code.CommonBlock := Self; 685 Order := TListObject.Create; 686 Order.OwnsObjects := False; 681 687 end; 682 688 … … 688 694 Functions.Free; 689 695 Code.Free; 696 Order.Free; 690 697 inherited; 691 698 end; … … 705 712 I := 0; 706 713 while (I < Count) and (LowerCase(Items[I].Name) <> LowerCase(Name)) do Inc(I); 707 if I < Count then Result := Items[I] else Result := nil; 714 if I < Count then Result := Items[I] 715 else Result := nil; 708 716 709 717 // Search in parent
Note:
See TracChangeset
for help on using the changeset viewer.