mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use iterateNames() for gathering completion variants of a module type
This commit is contained in:
@@ -122,7 +122,9 @@ public class PyModuleType implements PyType { // Modules don't descend from obje
|
||||
}
|
||||
}, new PyUtil.UnderscoreFilter(0));
|
||||
processor.setPlainNamesOnly(point == ResolveImportUtil.PointInImport.AS_NAME); // no parens after imported function names
|
||||
myModule.processDeclarations(processor, ResolveState.initial(), null, location);
|
||||
for(PyElement element: myModule.iterateNames()) {
|
||||
processor.execute(element, ResolveState.initial());
|
||||
}
|
||||
if (names_already != null) {
|
||||
for (LookupElement le : processor.getResultList()) {
|
||||
String name = le.getLookupString();
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import importSource
|
||||
|
||||
importSource.xyzzy
|
||||
@@ -0,0 +1,3 @@
|
||||
import importSource
|
||||
|
||||
importSource.xy<caret>
|
||||
@@ -0,0 +1,2 @@
|
||||
__all__ = ['xyzzy', 'shazam']
|
||||
|
||||
@@ -487,4 +487,8 @@ public class PythonCompletionTest extends PyTestCase {
|
||||
public void testAssignedNearby() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDunderAll() {
|
||||
doMultiFileTest();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user