public void Should_evaluate_false_for_nil() { var inputNode = new NilNode(); var evaluator = new BooleanEvaluator(); var result = evaluator.Eval(inputNode); result.ShouldBeOfType <FalseNode>(); }
private void PrettyPrintSub(NilNode node) { stringWriter.Write("nil"); }
private Expression Build(NilNode node) { return(Expression.Constant(null)); }
public void VisitNil(NilNode node) { UpdateLine(node); asm.PushNil(); }
public bool VisitNilNode(NilNode node, CompilationState state) { state.Write("nil"); return(true); }
private Expression Build(NilNode node) => Constant(null);
public void VisitNil(NilNode n) { Console.WriteLine($"Nil node: {n}"); }
public NilNodeTests() { subject = new NilNode(new SourcePosition(2, 4)); }
public void VisitNil(NilNode node) { VisitNilHandler(node); }