public override object VisitScaledDecimalLiteral(ScaledDecimalLiteralNode node) { if (node.NegativeSignToken == null) { return(node.Token.Value); } else { return(-node.Token.Value); } }
public override Expression VisitScaledDecimalLiteral(ScaledDecimalLiteralNode node) { if (node.NegativeSignToken == null) { return(this.Context.Compiler.LiteralEncodingStrategy.ScaledDecimal(this, node.Token.Value)); } else { return(this.Context.Compiler.LiteralEncodingStrategy.ScaledDecimal(this, -node.Token.Value)); } }
/// <summary> /// Visits the Scaled Decimal Literal node. /// </summary> /// <param name="node">The node to visit.</param> public override bool VisitScaledDecimalLiteral(ScaledDecimalLiteralNode node) { if (node.Parent == null) { return(false); } if (node.Token == null) { return(false); } return(true); }
/// <summary> /// Visits the Scaled Decimal Literal node. /// </summary> /// <param name="node">The node to visit.</param> public virtual TResult VisitScaledDecimalLiteral(ScaledDecimalLiteralNode node) { throw new NotImplementedException(); }
/// <summary> /// Visits the Scaled Decimal Literal node. /// </summary> /// <param name="node">The node to visit.</param> public virtual TResult VisitScaledDecimalLiteral(ScaledDecimalLiteralNode node) { return(default(TResult)); // The default naive implementation }