Changeset 145 for branches/easy compiler/USourceCode.pas
- Timestamp:
- Jan 17, 2018, 1:11:56 PM (7 years ago)
- Location:
- branches/easy compiler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/easy compiler
- Property svn:ignore
-
old new 2 2 *.exe 3 3 *.lps 4 heaptrclog.trc
-
- Property svn:ignore
-
branches/easy compiler/USourceCode.pas
r143 r145 16 16 17 17 TSourceReference = class 18 end; 19 20 TSourceReferences = class(TObjectList) 18 21 end; 19 22 … … 74 77 end; 75 78 79 { TSourceConstant } 80 76 81 TSourceConstant = class 77 82 Name: string; 78 83 Value: TSourceValue; 84 destructor Destroy; override; 79 85 end; 80 86 … … 123 129 TSourceFunctionCall = class(TSourceInstruction) 124 130 Name: string; 125 Parameters: array of TSourceReference; 126 procedure AddParameter(Value: TSourceReference); 131 Parameters: TSourceReferences; 132 constructor Create; 133 destructor Destroy; override; 127 134 end; 128 135 … … 156 163 implementation 157 164 165 { TSourceConstant } 166 167 destructor TSourceConstant.Destroy; 168 begin 169 Value.Free; 170 inherited Destroy; 171 end; 172 173 { TSourceFunctionCall } 174 175 constructor TSourceFunctionCall.Create; 176 begin 177 Parameters := TSourceReferences.Create; 178 end; 179 180 destructor TSourceFunctionCall.Destroy; 181 begin 182 Parameters.Free; 183 inherited Destroy; 184 end; 185 158 186 { TSourceBeginEnd } 159 187 … … 324 352 325 353 { TSourceFunctionCall } 326 327 procedure TSourceFunctionCall.AddParameter(Value: TSourceReference);328 begin329 SetLength(Parameters, Length(Parameters) + 1);330 Parameters[Length(Parameters) - 1] := Value;331 end;332 354 333 355 { TSourceCode }
Note:
See TracChangeset
for help on using the changeset viewer.