Ejemplo n.º 1
0
        void IAstVisitor.VisitNumber(AstNumber ast)
        {
            switch (ast)
            {
            case AstIntNumber i:
                AddInstr(new LoadConstantInstruction(LoadKind.Integer, i.Value));
                break;

            case AstDoubleNumber d:
                AddInstr(new LoadConstantInstruction(LoadKind.Double, d.Value));
                break;
            }
        }
Ejemplo n.º 2
0
 void IAstVisitor.VisitNumber(AstNumber ast)
 {
 }