Exemplo n.º 1
0
 /// <summary>
 /// When match a concat context adds a <see cref="StepConcat"/>.
 /// </summary>
 /// <param name="context">The context<see cref="UserAgentTreeWalkerParser.MatcherConcatContext"/>.</param>
 /// <returns>null.</returns>
 public override object VisitMatcherConcat([NotNull] UserAgentTreeWalkerParser.MatcherConcatContext context)
 {
     this.Visit(context.matcher());
     this.FromHereItCannotBeInHashMapAnymore();
     this.Add(new StepConcat(context.prefix.Text, context.postfix.Text));
     return(null); // Void
 }
	/// <summary>
	/// Exit a parse tree produced by the <c>matcherConcat</c>
	/// labeled alternative in <see cref="UserAgentTreeWalkerParser.matcher"/>.
	/// <para>The default implementation does nothing.</para>
	/// </summary>
	/// <param name="context">The parse tree.</param>
	public virtual void ExitMatcherConcat([NotNull] UserAgentTreeWalkerParser.MatcherConcatContext context) { }
Exemplo n.º 3
0
 /// <summary>
 /// Removes quotes from prefix and postfix when visisting a MatcherConcatContext.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns>null.</returns>
 public override object VisitMatcherConcat([NotNull] UserAgentTreeWalkerParser.MatcherConcatContext context)
 {
     this.UnQuoteToken(context.prefix);
     this.UnQuoteToken(context.postfix);
     return(base.VisitMatcherConcat(context));
 }
 /// <summary>
 /// Visit a parse tree produced by the <c>matcherConcat</c>
 /// labeled alternative in <see cref="UserAgentTreeWalkerParser.matcher"/>.
 /// <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 VisitMatcherConcat([NotNull] UserAgentTreeWalkerParser.MatcherConcatContext context)
 {
     return(VisitChildren(context));
 }