コード例 #1
0
        private void UpdateClassMembers()
        {
            // Add members from this file
            _class.AddMembers(Eval.CurrentScope.Variables, false);
            // Add members from stub
            var stubClass = Eval.Module.Stub?.GetMember <IPythonClassType>(_class.Name);

            _class.AddMembers(stubClass, false);
        }
コード例 #2
0
        private void UpdateClassMembers()
        {
            // Add members from this file
            var members = Eval.CurrentScope.Variables.Where(v => v.Source == VariableSource.Declaration || v.Source == VariableSource.Import);

            _class.AddMembers(members, false);
            // Add members from stub
            var stubClass = Eval.Module.Stub?.GetMember <IPythonClassType>(_class.Name);

            _class.AddMembers(stubClass, false);
        }
コード例 #3
0
        private void UpdateClassMembers()
        {
            // Add members from this file
            var members = Eval.CurrentScope.Variables.Where(v => v.Source == VariableSource.Declaration || v.Source == VariableSource.Import);

            _class.AddMembers(members, false);
        }