Ejemplo n.º 1
0
        public void Init()
        {
            ParseInformation parseInfo = new ParseInformation();

            projectContent = new MockProjectContent();
            completion     = new PythonImportCompletion(projectContent);
        }
Ejemplo n.º 2
0
        public void Init()
        {
            projectContent = new MockProjectContent();
            ParseInformation parseInfo = new ParseInformation(new DefaultCompilationUnit(projectContent));

            completion = new PythonImportCompletion(projectContent);
        }
Ejemplo n.º 3
0
        public void Init()
        {
            ParseInformation parseInfo = new ParseInformation();

            projectContent  = new MockProjectContent();
            completion      = new PythonImportCompletion(projectContent);
            completionItems = completion.GetCompletionItemsFromModule("sys");
        }
        public void Init()
        {
            projectContent = new MockProjectContent();
            ParseInformation parseInfo = new ParseInformation(new DefaultCompilationUnit(projectContent));

            PythonImportCompletion completion = new PythonImportCompletion(projectContent);

            completionItems = completion.GetCompletionItems(String.Empty);
        }
Ejemplo n.º 5
0
        public void Init()
        {
            projectContent = new MockProjectContent();
            List <ICompletionEntry> namespaceItems = new List <ICompletionEntry>();

            namespaceItems.Add(new NamespaceEntry("ICSharpCode.PythonBinding.Test"));
            projectContent.AddExistingNamespaceContents("ICSharpCode", namespaceItems);

            PythonImportCompletion completion = new PythonImportCompletion(projectContent);

            completionItems = completion.GetCompletionItems("ICSharpCode");
        }
        public void Init()
        {
            projectContent = new MockProjectContent();
            ParseInformation        parseInfo      = new ParseInformation(new DefaultCompilationUnit(projectContent));
            List <ICompletionEntry> namespaceItems = new List <ICompletionEntry>();

            namespaceItems.Add(new NamespaceEntry("Test"));
            projectContent.AddExistingNamespaceContents(String.Empty, namespaceItems);

            PythonImportCompletion completion = new PythonImportCompletion(projectContent);

            completionItems = completion.GetCompletionItems();
        }
Ejemplo n.º 7
0
        public void Init()
        {
            ParseInformation parseInfo = new ParseInformation();

            projectContent = new MockProjectContent();
            ArrayList namespaceItems = new ArrayList();

            namespaceItems.Add("ICSharpCode.PythonBinding.Test");
            projectContent.AddExistingNamespaceContents("ICSharpCode", namespaceItems);

            PythonImportCompletion completion = new PythonImportCompletion(projectContent);

            completionItems = completion.GetCompletionItems("ICSharpCode");
        }
        public void Init()
        {
            projectContent = new MockProjectContent();
            completion     = new PythonImportCompletion(projectContent);

            DefaultCompilationUnit unit      = new DefaultCompilationUnit(projectContent);
            ParseInformation       parseInfo = new ParseInformation(unit);

            c = new DefaultClass(unit, "Class");
            List <ICompletionEntry> namespaceItems = new List <ICompletionEntry>();

            namespaceItems.Add(c);
            projectContent.AddExistingNamespaceContents("System", namespaceItems);
        }