public ArithmeticOperation(ArithmeticExpression left, SyntaxProperty <ArithmeticOperator> op, ArithmeticExpression right = null) : base(ExpressionNodeType.ArithmeticOperation) { LeftOperand = left; Operator = op; RightOperand = right; }
public override string ToString() { if (ArithmeticExpression != null) { return(ArithmeticExpression.ToString()); } if (Variable != null) { return(Variable.ToString()); } if (NullPointerValue != null) { return(NullPointerValue.ToString()); } return(SelfObjectIdentifier.ToString()); }
private string GetExpressionToAppend(ArithmeticExpression expression) { if (expression == null) { return(string.Empty); } var expressionToAppend = expression.ToString(); if (expression.NodeType == ExpressionNodeType.NumericVariable && (expression as NumericVariableOperand)?.NumericVariable.MainSymbolReference != null) { expressionToAppend = ((NumericVariableOperand)expression).NumericVariable .MainSymbolReference.ToString(); } return(expressionToAppend); }
public static ArithmeticOperation CreateOperation(this ArithmeticOperator op, ArithmeticExpression left, ArithmeticExpression right = null) { return new ArithmeticOperation(left, new SyntaxProperty<ArithmeticOperator>(op, null), right); }
public ConditionOperand(ArithmeticExpression arithmeticExpression) : base(ExpressionNodeType.ConditionOperand) { ArithmeticExpression = arithmeticExpression; }
public ArithmeticOperation(ArithmeticExpression left, SyntaxProperty<ArithmeticOperator> op, ArithmeticExpression right = null) : base(ExpressionNodeType.ArithmeticOperation) { LeftOperand = left; Operator = op; RightOperand = right; }
public SubscriptExpression(ArithmeticExpression numericExpression) { NumericExpression = numericExpression; }
public ReferenceModifier(ArithmeticExpression leftmostCharacterPosition, ArithmeticExpression length) { LeftmostCharacterPosition = leftmostCharacterPosition; Length = length; }
public VariableOrExpression(ArithmeticExpression arithmeticExpression) { ArithmeticExpression = arithmeticExpression; }
public ReferenceModifier(ArithmeticExpression leftmostCharacterPosition, ArithmeticExpression length) { LeftmostCharacterPosition = leftmostCharacterPosition; Length = length; }
public SubscriptExpression(ArithmeticExpression numericExpression) { NumericExpression = numericExpression; }
public static ArithmeticOperation CreateOperation(this ArithmeticOperator op, ArithmeticExpression left, ArithmeticExpression right = null) { return(new ArithmeticOperation(left, new SyntaxProperty <ArithmeticOperator>(op, null), right)); }
public ConditionOperand(ArithmeticExpression arithmeticExpression) : base(ExpressionNodeType.ConditionOperand) { ArithmeticExpression = arithmeticExpression; }
public virtual bool Visit(ArithmeticExpression arithmeticExpression) { return(true); }