public IfStatement(IZ80AsmVisitorContext visitorContext, Z80AsmParser.IfStatementContext context) { if (context.IFSTMT() != null) { Expr = visitorContext.GetExpression(context.expr()); Type = IfStatementType.If; return; } Type = context.IFUSED() != null ? IfStatementType.IfUsed : IfStatementType.IfNotUsed; Symbol = visitorContext.GetSymbol(context.symbolExpr()); }
public override object VisitIfStatement(Z80AsmParser.IfStatementContext context) => new IfStatement(this, context);