Fixed closure upvalue scoping
This commit is contained in:
@@ -35,6 +35,8 @@ type
|
||||
procedure Clear;
|
||||
function Capture(const Address: TResolvedAddress): IValueCell;
|
||||
|
||||
function GetNameID(const Name: String): Integer;
|
||||
|
||||
function CreateDescriptor: IScopeDescriptor;
|
||||
|
||||
property Values[const Address: TResolvedAddress]: TDataValue read GetValues write SetValues; default;
|
||||
@@ -101,7 +103,6 @@ type
|
||||
|
||||
procedure DumpScope(const ABuilder: TStringBuilder; AIndent: Integer);
|
||||
procedure NeedNameToIndex;
|
||||
function GetNameID(const Name: String): Integer;
|
||||
function GetParent: IExecutionScope;
|
||||
function GetNameToIndex: TDictionary<Integer, Integer>;
|
||||
function GetValues(const Address: TResolvedAddress): TDataValue;
|
||||
@@ -110,6 +111,7 @@ type
|
||||
constructor Create(AParent: IExecutionScope; const ADescriptor: IScopeDescriptor; const ACapturedUpvalues: TArray<IValueCell>);
|
||||
destructor Destroy; override;
|
||||
procedure Clear;
|
||||
function GetNameID(const Name: String): Integer;
|
||||
function Dump: string;
|
||||
procedure Define(const Name: string; const Value: TDataValue);
|
||||
procedure DefineBoxed(const Address: TResolvedAddress; const Value: TDataValue);
|
||||
|
||||
Reference in New Issue
Block a user