Example #1
0
        /// <summary>
        /// number : NUMBER;
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override object VisitNumber([NotNull] WorkflowParser.NumberContext context)
        {
            var text = context.GetText();

            var i = Int64.Parse(text, this._currentCulture);

            if (i <= Int32.MaxValue)
            {
                return((Int32)i);
            }

            return(i);
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="WorkflowParser.number"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitNumber([NotNull] WorkflowParser.NumberContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// number : NUMBER;
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public override object VisitNumber([NotNull] WorkflowParser.NumberContext context)
 {
     return(base.VisitNumber(context));
 }