コード例 #1
0
        /// <summary>
        /// event_declaration_statement :
        ///     EVENT key comment?
        ///     ;
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public override object VisitEvent_declaration_statement([NotNull] WorkflowParser.Event_declaration_statementContext context)
        {
            string comment = string.Empty;
            var    c       = context.comment();

            if (c != null)
            {
                comment = (string)Visit(c);
            }
            return(new DeclaredEventConfig()
            {
                Name = (string)VisitKey(context.key()), Label = comment
            });
        }
コード例 #2
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="WorkflowParser.event_declaration_statement"/>.
 /// <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 VisitEvent_declaration_statement([NotNull] WorkflowParser.Event_declaration_statementContext context)
 {
     return(VisitChildren(context));
 }
コード例 #3
0
 /// <summary>
 /// event_declaration_statement :
 ///     EVENT key comment?
 ///     ;
 /// </summary>
 /// <param name="context"></param>
 /// <returns></returns>
 public override object VisitEvent_declaration_statement([NotNull] WorkflowParser.Event_declaration_statementContext context)
 {
     return(base.VisitEvent_declaration_statement(context));
 }