Exemple #1
0
        public PythonLazyOverload(OverloadModel model, ModuleFactory mf, IPythonClassMember cm)
        {
            _model = model;
            _mf    = mf;

            ClassMember   = cm;
            Documentation = model.Documentation;

            _overload = new PythonFunctionOverload(cm, new Location(mf.Module, default));
            _overload.SetDocumentation(cm.Documentation);
        }
Exemple #2
0
 private void EnsureContent()
 {
     lock (_contentLock) {
         if (_model != null)
         {
             _overload.SetParameters(_model.Parameters.Select(p => ConstructParameter(_mf, p)).ToArray());
             _overload.SetReturnValue(_mf.ConstructMember(_model.ReturnType), true);
             _model = null;
             _mf    = null;
         }
     }
 }