예제 #1
0
        public void Test_Ret()
        {
            var node = new RetNode();

            var map          = TileFactoryTestUtils.createMapping();
            var instructions = TileFactory.Stack.Ret().Cover(node);

            TileFactoryTestUtils.updateMapping(instructions, map);

            var          got      = TileFactoryTestUtils.getASM(instructions, map);
            const string expected = "ret\n";

            Assert.AreEqual(expected, got);
        }
예제 #2
0
		public virtual void Visit (RetNode node)
		{
			Visit (node as Node);
		}
 public override void Visit(RetNode node)
 {
     Visit(node as Node);
 }