public SearchExpressionContext(SearchExpressionRuntime runtime, SearchExpression expression, SearchExpression[] args, SearchExpressionExecutionFlags flags) { this.runtime = runtime; this.expression = expression; this.flags = flags; this.args = args; }
internal IEnumerable <SearchItem> Execute(SearchContext searchContext, SearchExpressionExecutionFlags executionFlags) { var runtime = new SearchExpressionRuntime(searchContext, executionFlags); if (executionFlags.HasFlag(SearchExpressionExecutionFlags.ThreadedEvaluation)) { return(TaskEvaluatorManager.Evaluate(runtime.current, this)); } return(Execute(runtime.current, executionFlags)); }