/// <summary> /// When match a path is in lookup prefix context adds a <see cref="StepIsInLookupPrefix"/>. /// </summary> /// <param name="context">The context<see cref="UserAgentTreeWalkerParser.MatcherPathIsInLookupPrefixContext"/>.</param> /// <returns>null.</returns> public override object VisitMatcherPathIsInLookupPrefix([NotNull] UserAgentTreeWalkerParser.MatcherPathIsInLookupPrefixContext context) { this.Visit(context.matcher()); this.FromHereItCannotBeInHashMapAnymore(); var lookupName = context.lookup.Text; var lookup = this.GetLookup(lookupName); this.Add(new StepIsInLookupPrefix(lookupName, lookup)); return(null); // Void }
/// <summary> /// Exit a parse tree produced by the <c>matcherPathIsInLookupPrefix</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 ExitMatcherPathIsInLookupPrefix([NotNull] UserAgentTreeWalkerParser.MatcherPathIsInLookupPrefixContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>matcherPathIsInLookupPrefix</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 VisitMatcherPathIsInLookupPrefix([NotNull] UserAgentTreeWalkerParser.MatcherPathIsInLookupPrefixContext context) { return(VisitChildren(context)); }