Esempio n. 1
0
        /// <summary>
        /// type :
        ///     TEXT | INTEGER | DECIMAL
        ///     ;
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override object VisitType([NotNull] WorkflowParser.TypeContext context)
        {
            if (context.TEXT() != null)
            {
                return(typeof(string));
            }

            if (context.INTEGER() != null)
            {
                return(typeof(Int64));
            }

            if (context.DECIMAL() != null)
            {
                return(typeof(double));
            }

            return(typeof(object));
        }
 /// <summary>
 /// Visit a parse tree produced by <see cref="WorkflowParser.type"/>.
 /// <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 VisitType([NotNull] WorkflowParser.TypeContext context)
 {
     return(VisitChildren(context));
 }
 /// <summary>
 /// type :
 ///     TEXT | INTEGER | DECIMAL
 ///     ;
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public override object VisitType([NotNull] WorkflowParser.TypeContext context)
 {
     return(base.VisitType(context));
 }