Esempio n. 1
0
 public PythonCodeCompletionDataCore(string text, string stub, bool isInstance,
                                     ExternalCodeCompletionType completionType, IExternalCodeCompletionProviderCore providerCore)
 {
     Text           = text;
     Stub           = stub;
     IsInstance     = isInstance;
     provider       = providerCore;
     CompletionType = completionType;
 }
Esempio n. 2
0
        internal SharedCompletionProvider(string versionName, string dynamoCoreDir)
        {
            var matchingCore = FindMatchingCodeCompletionCore(versionName, this.AsLogger());

            if (matchingCore != null)
            {
                this.providerImplementation = matchingCore;
                this.providerImplementation.Initialize(dynamoCoreDir);
                if (providerImplementation is ILogSource)
                {
                    (providerImplementation as ILogSource).MessageLogged += this.Log;
                }
            }
        }
Esempio n. 3
0
        internal SharedCompletionProvider(PythonEngineVersion version, string dynamoCoreDir)
        {
            var versionName  = Enum.GetName(typeof(PythonEngineVersion), version);
            var matchingCore = FindMatchingCodeCompletionCore(versionName, this.AsLogger());

            if (matchingCore != null)
            {
                this.providerImplementation = matchingCore;
                this.providerImplementation.Initialize(dynamoCoreDir);
                if (providerImplementation is ILogSource)
                {
                    (providerImplementation as ILogSource).MessageLogged += this.Log;
                }
            }
        }
 public IronPythonCodeCompletionDataCore(string text, string stub, bool isInstance,
                                         ExternalCodeCompletionType completionType, IExternalCodeCompletionProviderCore providerCore) :
     base(text, stub, isInstance, completionType, providerCore)
 {
 }