Exemple #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;
            }
        }
Exemple #2
0
 void IAstVisitor.VisitNumber(AstNumber ast)
 {
 }