Esempio n. 1
0
        public override object VisitEnumSupportStatement(EnumSupportStatementContext context)
        {
            var id = ((Result)Visit(context.id()));

            if (context.expression() != null)
            {
                id.text += " = " + Visit(context.expression());
            }
            return(id.text + ",");
        }
Esempio n. 2
0
        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 + ",");
        }
Esempio n. 3
0
        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 + ",");
        }