private bool IsSelfReference(Expression expr)
            {
                if (!(expr is NameExpression ne))
                {
                    return(false);
                }

                PythonVariable variable;

                if (_function.TryGetVariable(ne.Name, out variable) && variable == _self.PythonVariable)
                {
                    return(true);
                }

                return(false);
            }
 private bool IsSelfReference(Expression expr)
 {
     return(expr is NameExpression ne &&
            _function.TryGetVariable(ne.Name, out PythonVariable variable) &&
            variable == _self.PythonVariable);
 }