public override object VisitWithAggregator(CryslGrammarParser.WithAggregatorContext context)
        {
            List <CryptoSignature> cryptoSignatureList = new List <CryptoSignature>();
            Methods eventMethods = new Methods();

            foreach (var events in context.@event())
            {
                CryptoSignature cryptoSignature = (CryptoSignature)Visit(events);
                cryptoSignatureList.Add(cryptoSignature);
            }
            eventMethods.Crypto_Signature = cryptoSignatureList;
            Aggregator aggregator = (Aggregator)Visit(context.aggregator());

            eventMethods.Aggregator = aggregator;
            return(eventMethods);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Visit a parse tree produced by the <c>WithAggregator</c>
 /// labeled alternative in <see cref="CryslGrammarParser.events"/>.
 /// <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 VisitWithAggregator([NotNull] CryslGrammarParser.WithAggregatorContext context)
 {
     return(VisitChildren(context));
 }