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