Refactoring for immutable nodes
This commit is contained in:
@@ -739,11 +739,7 @@ begin
|
||||
for i := 0 to fieldsArray.Count - 1 do
|
||||
begin
|
||||
fieldObj := fieldsArray.Items[i] as TJSONObject;
|
||||
fields[i] :=
|
||||
TRecordFieldLiteral.Create(
|
||||
TKeywordNode.Create(TKeywordRegistry.Intern(fieldObj.GetValue<string>('Name'))),
|
||||
JsonToNode(fieldObj.GetValue('Value'))
|
||||
);
|
||||
fields[i] := TRecordFieldLiteral.Create(TAst.Keyword(fieldObj.GetValue<string>('Name')), JsonToNode(fieldObj.GetValue('Value')));
|
||||
end;
|
||||
Result := TAst.RecordLiteral(fields);
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user