Beispiel #1
0
 public override object VisitFloatDLiteral(FloatDLiteralNode node)
 {
     if (node.NegativeSignToken == null)
     {
         return(node.Token.Value);
     }
     else
     {
         return(-node.Token.Value);
     }
 }
 public override Expression VisitFloatDLiteral(FloatDLiteralNode node)
 {
     if (node.NegativeSignToken == null)
     {
         return(this.Context.Compiler.LiteralEncodingStrategy.FloatD(this, node.Token.Value));
     }
     else
     {
         return(this.Context.Compiler.LiteralEncodingStrategy.FloatD(this, -node.Token.Value));
     }
 }
Beispiel #3
0
 /// <summary>
 /// Visits the Float Literal node.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 public override bool VisitFloatDLiteral(FloatDLiteralNode node)
 {
     if (node.Parent == null)
     {
         return(false);
     }
     if (node.Token == null)
     {
         return(false);
     }
     return(true);
 }
Beispiel #4
0
 /// <summary>
 /// Visits the Float Literal node.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 public virtual TResult VisitFloatDLiteral(FloatDLiteralNode node)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 /// <summary>
 /// Visits the FloatD Literal node.
 /// </summary>
 /// <param name="node">The node to visit.</param>
 public virtual TResult VisitFloatDLiteral(FloatDLiteralNode node)
 {
     return(default(TResult));            // The default naive implementation
 }