Skip to content

Commit

Permalink
Added Evaluator #22
Browse files Browse the repository at this point in the history
  • Loading branch information
bero committed Dec 6, 2024
1 parent dda3dba commit c35d7d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/BoldElements.pas
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ TBoldExternalVariableList = class(TBoldObjectArray)
public
constructor Create; overload;
constructor Create(aOwnsVariables: boolean); overload;
class function CreateWithStringVariable(AName: string; AValue: string): TBoldExternalVariableList;
class function CreateWithStringVariable(AName: string; AValue: string; AEvaluator: TBoldEvaluator = nil): TBoldExternalVariableList;
class function CreateWithElementVariable(AName: string; AValue: TBoldElement): TBoldExternalVariableList;
function GetEnumerator: TBoldExternalVariableListTraverser;
procedure Add(Variable: TBoldExternalVariable); overload;
Expand Down Expand Up @@ -1039,10 +1039,10 @@ class function TBoldExternalVariableList.CreateWithElementVariable(
end;

class function TBoldExternalVariableList.CreateWithStringVariable(AName,
AValue: string): TBoldExternalVariableList;
AValue: string; AEvaluator: TBoldEvaluator): TBoldExternalVariableList;
begin
result := TBoldExternalVariableList.Create;
result.Add(TBoldOclVariable.CreateStringVariable(AName, AValue));
result.Add(TBoldOclVariable.CreateStringVariable(AName, AValue, AEvaluator));
end;

function TBoldExternalVariableList.GetAsCommaText: string;
Expand Down

0 comments on commit c35d7d4

Please sign in to comment.