ITupleNode signature change

This commit is contained in:
Michael Schimmel
2026-01-06 11:37:18 +01:00
parent 264314cd93
commit 40ed51aef8
23 changed files with 340 additions and 270 deletions
+6 -4
View File
@@ -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;