Refactoring + Panning in Workspace
This commit is contained in:
@@ -80,9 +80,9 @@ type
|
||||
public
|
||||
class operator Initialize(out Dest: TAstValue);
|
||||
class function Void: TAstValue; inline; static;
|
||||
class function FromScalar(const AValue: TScalar): TAstValue; inline; static;
|
||||
class function FromClosure(const AValue: TAstValue.IClosure): TAstValue; inline; static;
|
||||
class function FromText(const AValue: String): TAstValue; inline; static;
|
||||
class operator Implicit(const AValue: TScalar): TAstValue; overload; inline;
|
||||
class operator Implicit(const AValue: TAstValue.IClosure): TAstValue; overload; inline;
|
||||
class operator Implicit(const AValue: String): TAstValue; overload; inline;
|
||||
class function FromSeries(const [ref] AValue: TScalarSeries): TAstValue; static; inline;
|
||||
class function FromRecordSeries(const [ref] AValue: TScalarRecordSeries): TAstValue; static; inline;
|
||||
class function FromRecord(const [ref] AValue: TScalarRecord): TAstValue; static; inline;
|
||||
@@ -116,8 +116,7 @@ type
|
||||
Kind: TAddressKind;
|
||||
ScopeDepth: Integer;
|
||||
SlotIndex: Integer;
|
||||
Name: String;
|
||||
constructor Create(AKind: TAddressKind; AScopeDepth, ASlotIndex: Integer; const AName: String);
|
||||
constructor Create(AKind: TAddressKind; AScopeDepth, ASlotIndex: Integer);
|
||||
class operator Initialize(out Dest: TResolvedAddress);
|
||||
end;
|
||||
|
||||
@@ -402,7 +401,7 @@ begin
|
||||
Result := (FInterface as TVal<String>).Value;
|
||||
end;
|
||||
|
||||
class function TAstValue.FromClosure(const AValue: TAstValue.IClosure): TAstValue;
|
||||
class operator TAstValue.Implicit(const AValue: TAstValue.IClosure): TAstValue;
|
||||
begin
|
||||
Result.FKind := avkClosure;
|
||||
Result.FInterface := AValue;
|
||||
@@ -430,7 +429,7 @@ begin
|
||||
Result.FScalar := Default(TScalar);
|
||||
end;
|
||||
|
||||
class function TAstValue.FromScalar(const AValue: TScalar): TAstValue;
|
||||
class operator TAstValue.Implicit(const AValue: TScalar): TAstValue;
|
||||
begin
|
||||
Result.FKind := avkScalar;
|
||||
Result.FScalar := AValue;
|
||||
@@ -444,7 +443,7 @@ begin
|
||||
Result.FScalar := Default(TScalar);
|
||||
end;
|
||||
|
||||
class function TAstValue.FromText(const AValue: String): TAstValue;
|
||||
class operator TAstValue.Implicit(const AValue: String): TAstValue;
|
||||
begin
|
||||
Result.FKind := avkText;
|
||||
Result.FInterface := TVal<String>.Create(AValue);
|
||||
@@ -484,12 +483,11 @@ end;
|
||||
|
||||
{ TResolvedAddress }
|
||||
|
||||
constructor TResolvedAddress.Create(AKind: TAddressKind; AScopeDepth, ASlotIndex: Integer; const AName: String);
|
||||
constructor TResolvedAddress.Create(AKind: TAddressKind; AScopeDepth, ASlotIndex: Integer);
|
||||
begin
|
||||
Kind := AKind;
|
||||
ScopeDepth := AScopeDepth;
|
||||
SlotIndex := ASlotIndex;
|
||||
Name := AName;
|
||||
end;
|
||||
|
||||
class operator TResolvedAddress.Initialize(out Dest: TResolvedAddress);
|
||||
@@ -497,7 +495,6 @@ begin
|
||||
Dest.Kind := akUnresolved;
|
||||
Dest.ScopeDepth := -1;
|
||||
Dest.SlotIndex := -1;
|
||||
Dest.Name := 'unresolved';
|
||||
end;
|
||||
|
||||
{ TBinaryOperatorHelper }
|
||||
|
||||
Reference in New Issue
Block a user