Complete only imported classes on auto-typing and first completion and set up invocation count

This commit is contained in:
Nikolay Krasko
2013-07-04 16:52:48 +04:00
parent f0a10b70c1
commit 37e4402822
15 changed files with 200 additions and 88 deletions
@@ -1,8 +1,11 @@
class Test {
val Str<caret>
val St<caret>
}
// TIME: 1
// EXIST: String~(jet)
// EXIST: StringBuilder
// EXIST: IllegalStateException
// EXIST_JAVA_ONLY: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
// ABSENT: HTMLStyleElement
// ABSENT: Statement@Statement~(java.sql)
@@ -0,0 +1,11 @@
class Test {
val St<caret>
}
// TIME: 2
// EXIST: String~(jet)
// EXIST: IllegalStateException
// EXIST: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
// EXIST_JS_ONLY: HTMLStyleElement
// EXIST_JAVA_ONLY: Statement@Statement~(java.sql)
@@ -0,0 +1,22 @@
class StrSome {
class StrOther
fun more() {
class StrInFun
fun Str<caret>
}
}
class StrMore {
class StrAbsent
}
// TIME: 1
// EXIST: String~(jet)
// EXIST: StrSome
// EXIST: StrMore
// EXIST: StrInFun
// EXIST_JAVA_ONLY: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
// ABSENT: StrAbsent
@@ -0,0 +1,14 @@
class SomeClass {
class SomeInternal
fun some(a : S<caret>)
}
// TIME: 1
// EXIST: SomeClass, SomeInternal
// EXIST: String~(jet)
// EXIST: IllegalStateException
// EXIST_JAVA_ONLY: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
// ABSENT: HTMLStyleElement
// ABSENT: Statement@Statement~(java.sql)
@@ -0,0 +1,14 @@
class SomeClass {
class SomeInternal
fun some(a : S<caret>)
}
// TIME: 2
// EXIST: SomeClass, SomeInternal
// EXIST: String~(jet)
// EXIST: IllegalStateException
// EXIST: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
// EXIST_JS_ONLY: HTMLStyleElement
// EXIST_JAVA_ONLY: Statement@Statement~(java.sql)
@@ -0,0 +1,4 @@
fun some(a : Statement<caret>)
// TIME: 1
// EXIST: Statement@Statement~(java.sql)
@@ -8,4 +8,4 @@ fun firstFun() {
// TIME: 1
// EXIST: PropertyMetadata@PropertyMetadata~(jet)
// EXIST: PropertyMetadataImpl@PropertyMetadataImpl~(jet)
// NUMBER: 4
// NUMBER: 2
@@ -0,0 +1,4 @@
fun some(a : HTMLStyle<caret>)
// TIME: 1
// EXIST: HTMLStyleElement