ITupleNode signature change
This commit is contained in:
@@ -453,12 +453,14 @@ begin
|
||||
ErrorFmt('%s expects a vector [...]', [Context]);
|
||||
|
||||
tuple := Node.AsTuple;
|
||||
SetLength(Result, tuple.Count);
|
||||
for i := 0 to tuple.Count - 1 do
|
||||
// Updated to use Elements property
|
||||
var elements := tuple.Elements;
|
||||
SetLength(Result, Length(elements));
|
||||
for i := 0 to High(elements) do
|
||||
begin
|
||||
if tuple.Items[i].Kind <> akIdentifier then
|
||||
if elements[i].Kind <> akIdentifier then
|
||||
ErrorFmt('%s vector must contain only identifiers.', [Context]);
|
||||
Result[i] := tuple.Items[i].AsIdentifier;
|
||||
Result[i] := elements[i].AsIdentifier;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user