Share via


Expression.ReferenceWalk(Expression, Func<Expression,Boolean>) Method

Definition

Walking function for identifying static memory references in an expression.

public (string path, System.Collections.Generic.HashSet<string> references) ReferenceWalk (AdaptiveExpressions.Expression expression, Func<AdaptiveExpressions.Expression,bool> extension = default);
member this.ReferenceWalk : AdaptiveExpressions.Expression * Func<AdaptiveExpressions.Expression, bool> -> ValueTuple<string, System.Collections.Generic.HashSet<string>>
Public Function ReferenceWalk (expression As Expression, Optional extension As Func(Of Expression, Boolean) = Nothing) As ValueTuple(Of String, HashSet(Of String))

Parameters

expression
Expression

Expression to analyze.

extension
Func<Expression,Boolean>

If present, called to override lookup for things like template expansion.

Returns

Accessor path of expression which is a potential partial path and the full path found so far.

Applies to