Push
Push a new SearchExpression with its arguments to be evaluated. This is useful if a user defined evaluator needs to generate a new Context of evaluation.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
Push(SearchExpression, IEnumerable<SearchExpression>)
Push a new SearchExpression with its arguments to be evaluated. This is useful if a user defined evaluator needs to generate a new Context of evaluation.
public IDisposable Push(SearchExpression searchExpression, IEnumerable<SearchExpression> args)
Parameters
Expression to evaluate.
Parameters passed to the expression to evaluate.
Returns
Type | Description |
|---|---|
| IDisposable | Returns a new disposable Scope. When out this scope is disposed the newly created SearchExpressionContext will be removed from the frames. |
Push(SearchItem)
Push a new SearchExpression with its arguments to be evaluated. This is useful if a user defined evaluator needs to generate a new Context of evaluation.
public IDisposable Push(SearchItem item)
Parameters
Push a new yielded item in the current evaluation frame.
Returns
Type | Description |
|---|---|
| IDisposable | Returns a new disposable Scope. When out this scope is disposed the newly created SearchExpressionContext will be removed from the frames. |