public override Expression VisitCallPath(EqlGrammerParser.CallPathContext context) { var startingContext = _currentContext; Expression exp = null; foreach (var child in context.children) { var r = Visit(child); if (r == null) { continue; } exp = r; _currentContext = exp; } _currentContext = startingContext; return(exp); }
/// <summary> /// Visit a parse tree produced by <see cref="EqlGrammerParser.callPath"/>. /// <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 VisitCallPath([NotNull] EqlGrammerParser.CallPathContext context) { return(VisitChildren(context)); }