internal bool TryGetVariable(string name, [NotNullWhen(true)] out ParameterExpression?variable) { if (_Variables.TryGetValue(name, out variable)) { return(true); } if (ParentScopeCompiled?.TryGetVariable(name, out variable) == true) { return(true); } return(false); }
internal IEnumerable <ParameterExpression> VariableWalk() { return(Variables.Concat(ParentScopeCompiled?.VariableWalk() ?? Enumerable.Empty <ParameterExpression>())); }