Пример #1
0
        public override ISet <Namespace> GetMember(Node node, AnalysisUnit unit, string name)
        {
            if (name == "get")
            {
                if (_getMethod == null)
                {
                    var getter = ProjectState.GetMember <BuiltinMethodDescriptor>(ClrModule.GetPythonType(typeof(PythonDictionary)), "get");
                    _getMethod = new DictionaryGetMethod(getter, ProjectState, this).SelfSet;
                }
                return(_getMethod);
            }

            return(base.GetMember(node, unit, name));
        }