You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would also pull this out into a function that walks expression trees:
/// Accumulate all field references from this expression and its children in the provided set
fn collect_references<'a>(&'a self, _references: &mut HashSet<&'a Field>) {}
/// Accumulate all field references from this expression and its children in a new set
fn references(&self) -> HashSet<&Field> {
let mut refs = HashSet::new();
self.collect_references(&mut refs);
refs
}
It's defined as exactly as the set of X where GetItem(Identity, X) exists in the expression tree.
And call it field_references instead.
The text was updated successfully, but these errors were encountered:
I would also pull this out into a function that walks expression trees:
It's defined as exactly as the set of X where
GetItem(Identity, X)
exists in the expression tree.And call it
field_references
instead.The text was updated successfully, but these errors were encountered: