Refactoring

This commit is contained in:
Michael Schimmel
2025-11-05 13:48:10 +01:00
parent c0a689d2bc
commit 218bd9f506
4 changed files with 25 additions and 25 deletions
+8 -8
View File
@@ -112,7 +112,7 @@ type
TScopeItem = record
Value: TDataValue;
IsBoxed: Boolean;
function GetContent: TDataValue;
function GetContent: TDataValue; inline;
end;
private
@@ -485,6 +485,13 @@ begin
end;
end;
function TExecutionScope.TScopeItem.GetContent: TDataValue;
begin
Result := Value;
if IsBoxed then
Result := Result.AsIntf<IValueCell>.Value;
end;
{ TScopeDescriptor }
constructor TScopeDescriptor.Create(const AParent: IScopeDescriptor);
@@ -657,11 +664,4 @@ begin
Result := TExecutionScope.Create(Parent, Descriptor, CapturedUpvalues);
end;
function TExecutionScope.TScopeItem.GetContent: TDataValue;
begin
Result := Value;
if IsBoxed then
Result := Result.AsIntf<IValueCell>.Value;
end;
end.