public void VisitInstructionI8(CilInstructionI8 instruction) { if (instruction is LoadConstI8Instruction loadConstI8Instruction) { VisitLoadConstI8Instruction(loadConstI8Instruction); } else { throw new ArgumentException($"CIL instruction i8 cannot be recognized: '{instruction.ToString()}'."); } }
public override void Init(AstContext context, ParseTreeNode parseNode) { // ___("ldc.i8") var ldci8Children = AstChildren.Empty() .Add("ldc.i8"); if (ldci8Children.PopulateWith(parseNode)) { Instruction = new LoadConstI8Instruction(); return; } throw new System.NotImplementedException(); }