public override object VisitEnumSupportStatement(EnumSupportStatementContext context) { var id = ((Result)Visit(context.id())); if (context.expression() != null) { id.text += " = " + Visit(context.expression()); } return(id.text + ","); }
public override object VisitEnumSupportStatement(EnumSupportStatementContext context) { var id = (Result)(Visit(context.id())); if (context.integerExpr() != null) { var op = ""; if (context.add() != null) { op = (string)(Visit(context.add())); } id.text += " = " + op + Visit(context.integerExpr()); } return(id.text + ","); }
public override object VisitEnumSupportStatement([NotNull] EnumSupportStatementContext context) { var id = (Result)Visit(context.id()); if (context.Integer() != null) { var op = ""; if (context.add() != null) { op = (string)Visit(context.add()); } id.text += " = " + op + context.Integer().GetText(); } return(id.text + ","); }