public ExpressionCalculatedResult(Dictionary <string, MoneyColumnMetadataJsModel> columns, MoneyColumnMetadataJsModel h, Dictionary <MoneyColumnMetadataJsModel, CalculatedResult> deps) : base(h) { _deps = deps; var expression = Parse(columns, h, h.Function); _expression = expression; }
public override CalculateExpression TryApply(CalculateExpression otherExpression) { if (Left == null) { Left = otherExpression; } else if (Right == null) { Right = otherExpression; } else { throw new NotSupportedException(); } return(this); }
public override CalculateExpression TryApply(CalculateExpression otherExpression) => otherExpression;
public override CalculateExpression TryApply(CalculateExpression otherExpression) => throw new NotSupportedException();
public override CalculateExpression TryApply(CalculateExpression otherExpression) { throw new NotImplementedException(); }
public abstract CalculateExpression TryApply(CalculateExpression otherExpression);
public ParenthesisExpression(CalculateExpression baseExpression) { _baseExpression = baseExpression; }
public override CalculateExpression TryApply(CalculateExpression otherExpression) => _baseExpression.TryApply(otherExpression);