From 7f5f6ad76fb6f02cb84f0e04706115528530c8bb Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 8 Nov 2018 17:02:24 +0300 Subject: [PATCH] Update QuickDoc testData due to platform changes --- .../editor/quickDoc/JavaClassUsedInKotlin.kt | 2 +- .../quickDoc/JavaClassUsedInKotlin.kt.181 | 8 +++++ .../quickDoc/JavaDocFromOverridenClass.kt | 4 +-- .../quickDoc/JavaDocFromOverridenClass.kt.181 | 9 ++++++ .../quickDoc/JavaDocFromOverridenInterface.kt | 4 +-- .../JavaDocFromOverridenInterface.kt.181 | 9 ++++++ .../editor/quickDoc/JavaMethodUsedInKotlin.kt | 4 +-- .../quickDoc/JavaMethodUsedInKotlin.kt.181 | 9 ++++++ .../editor/quickDoc/OnEnumValueOfFunction.kt | 2 +- .../quickDoc/OnEnumValueOfFunction.kt.181 | 12 ++++++++ .../OnFunctionDeclarationWithPackage.kt | 2 +- .../OnFunctionDeclarationWithPackage.kt.181 | 18 ++++++++++++ .../testData/editor/quickDoc/OnMethodUsage.kt | 2 +- .../editor/quickDoc/OnMethodUsage.kt.181 | 18 ++++++++++++ .../OnMethodUsageWithBracketsInParam.kt | 2 +- .../OnMethodUsageWithBracketsInParam.kt.181 | 18 ++++++++++++ .../OnMethodUsageWithMultilineParam.kt | 2 +- .../OnMethodUsageWithMultilineParam.kt.181 | 17 +++++++++++ .../quickDoc/OnMethodUsageWithReceiver.kt | 2 +- .../quickDoc/OnMethodUsageWithReceiver.kt.181 | 18 ++++++++++++ .../OnMethodUsageWithReturnAndLink.kt | 2 +- .../OnMethodUsageWithReturnAndLink.kt.181 | 19 ++++++++++++ .../OnMethodUsageWithReturnAndThrows.kt | 2 +- .../OnMethodUsageWithReturnAndThrows.kt.181 | 20 +++++++++++++ .../editor/quickDoc/OnMethodUsageWithSee.kt | 2 +- .../quickDoc/OnMethodUsageWithSee.kt.181 | 20 +++++++++++++ .../OnMethodUsageWithTypeParameter.kt | 2 +- .../OnMethodUsageWithTypeParameter.kt.181 | 19 ++++++++++++ idea/testData/editor/quickDoc/Samples.kt | 2 +- idea/testData/editor/quickDoc/Samples.kt.181 | 29 +++++++++++++++++++ 30 files changed, 261 insertions(+), 18 deletions(-) create mode 100644 idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt.181 create mode 100644 idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt.181 create mode 100644 idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt.181 create mode 100644 idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsage.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt.181 create mode 100644 idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt.181 create mode 100644 idea/testData/editor/quickDoc/Samples.kt.181 diff --git a/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt b/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt index 69728726e65..0a90ce35765 100644 --- a/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt +++ b/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt @@ -5,4 +5,4 @@ fun testing() { //INFO:
public class SomeClass<T extends List>
 //INFO: extends Object
//INFO: Some Java Class -//INFO:

Type parameters:

<T> –
+//INFO:

Type parameters:

<T> –
diff --git a/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt.181 b/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt.181 new file mode 100644 index 00000000000..69728726e65 --- /dev/null +++ b/idea/testData/editor/quickDoc/JavaClassUsedInKotlin.kt.181 @@ -0,0 +1,8 @@ +fun testing() { + SomeClass>() +} + +//INFO:
public class SomeClass<T extends List>
+//INFO: extends Object
+//INFO: Some Java Class +//INFO:

Type parameters:

<T> –
diff --git a/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt b/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt index 6cb3af1c474..d771381a3f6 100644 --- a/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt +++ b/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt @@ -4,6 +4,6 @@ class A : OverrideMe() { } -//INFO:
A
protected open fun overrideMe(): Unit

Description copied from class:

OverrideMe
+//INFO:

A
protected open fun overrideMe(): Unit

Description copied from class:

OverrideMe
//INFO: Some comment -//INFO:

Overrides:

overrideMe in class OverrideMe

+//INFO:

Overrides:

overrideMe in class OverrideMe

diff --git a/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt.181 b/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt.181 new file mode 100644 index 00000000000..6cb3af1c474 --- /dev/null +++ b/idea/testData/editor/quickDoc/JavaDocFromOverridenClass.kt.181 @@ -0,0 +1,9 @@ +class A : OverrideMe() { + override fun overrideMe() { + } +} + + +//INFO:
A
protected open fun overrideMe(): Unit

Description copied from class:

OverrideMe
+//INFO: Some comment +//INFO:

Overrides:

overrideMe in class OverrideMe

diff --git a/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt b/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt index b2a033087c4..6c24dca926f 100644 --- a/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt +++ b/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt @@ -4,6 +4,6 @@ class A : OverrideMe { } -//INFO:
A
public open fun overrideMe(): Unit

Description copied from interface:

OverrideMe
+//INFO:

A
public open fun overrideMe(): Unit

Description copied from interface:

OverrideMe
//INFO: Some comment -//INFO:

Specified by:

overrideMe in interface OverrideMe

+//INFO:

Specified by:

overrideMe in interface OverrideMe

diff --git a/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt.181 b/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt.181 new file mode 100644 index 00000000000..b2a033087c4 --- /dev/null +++ b/idea/testData/editor/quickDoc/JavaDocFromOverridenInterface.kt.181 @@ -0,0 +1,9 @@ +class A : OverrideMe { + override fun overrideMe() { + } +} + + +//INFO:
A
public open fun overrideMe(): Unit

Description copied from interface:

OverrideMe
+//INFO: Some comment +//INFO:

Specified by:

overrideMe in interface OverrideMe

diff --git a/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt b/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt index 236c74ac245..a8cfef316a5 100644 --- a/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt +++ b/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt @@ -2,8 +2,8 @@ fun ktTest() { Test.foo("SomeTest") } -//INFO:
Test
@Contract(pure = true)  +//INFO:
Test
@Contract(value = "_ -> new", pure = true)  //INFO: @NotNull  //INFO: public static Object[] foo(String param)
//INFO: Java Method -//INFO:

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true) @org.jetbrains.annotations.NotNull

+//INFO:

Inferred annotations:

@org.jetbrains.annotations.Contract(value = "_ -> new", pure = true) @org.jetbrains.annotations.NotNull

diff --git a/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt.181 b/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt.181 new file mode 100644 index 00000000000..236c74ac245 --- /dev/null +++ b/idea/testData/editor/quickDoc/JavaMethodUsedInKotlin.kt.181 @@ -0,0 +1,9 @@ +fun ktTest() { + Test.foo("SomeTest") +} + +//INFO:
Test
@Contract(pure = true)  +//INFO: @NotNull  +//INFO: public static Object[] foo(String param)
+//INFO: Java Method +//INFO:

Inferred annotations:

@org.jetbrains.annotations.Contract(pure = true) @org.jetbrains.annotations.NotNull

diff --git a/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt b/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt index d8ce65d9d5a..aaf0f58b762 100644 --- a/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt +++ b/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt @@ -9,4 +9,4 @@ fun use() { //INFO:
E
public final fun valueOf( //INFO: value: String -//INFO: ): E

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws:

IllegalArgumentException - if this enum type has no constant with the specified name

+//INFO: ): E

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws:

IllegalArgumentException - if this enum type has no constant with the specified name

diff --git a/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt.181 b/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt.181 new file mode 100644 index 00000000000..d8ce65d9d5a --- /dev/null +++ b/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt.181 @@ -0,0 +1,12 @@ +enum class E { + A +} + +fun use() { + E.valueOf("A") +} + + +//INFO:
E
public final fun valueOf( +//INFO: value: String +//INFO: ): E

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws:

IllegalArgumentException - if this enum type has no constant with the specified name

diff --git a/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt b/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt index 8d41702eade..abd712497d5 100644 --- a/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt +++ b/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt @@ -15,4 +15,4 @@ fun testFun(first: String, second: Int) = 12 //INFO:
test OnFunctionDeclarationWithPackage.kt
public fun testFun( //INFO: first: String, //INFO: second: Int -//INFO: ): Int

Test function

Params:

first - Some

second - Other

+//INFO: ): Int

Test function

Params:

first - Some

second - Other

diff --git a/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt.181 b/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt.181 new file mode 100644 index 00000000000..8d41702eade --- /dev/null +++ b/idea/testData/editor/quickDoc/OnFunctionDeclarationWithPackage.kt.181 @@ -0,0 +1,18 @@ +package test + +/** + + * + * + * Test function + + * + * @param first Some + * @param second Other + */ +fun testFun(first: String, second: Int) = 12 + +//INFO:
test OnFunctionDeclarationWithPackage.kt
public fun testFun( +//INFO: first: String, +//INFO: second: Int +//INFO: ): Int

Test function

Params:

first - Some

second - Other

diff --git a/idea/testData/editor/quickDoc/OnMethodUsage.kt b/idea/testData/editor/quickDoc/OnMethodUsage.kt index aa3e96d39bc..c95c404a7da 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsage.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsage.kt @@ -15,4 +15,4 @@ fun test() { //INFO:
OnMethodUsage.kt
public fun testMethod( //INFO: a: Int, //INFO: b: String -//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

+//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/OnMethodUsage.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsage.kt.181 new file mode 100644 index 00000000000..aa3e96d39bc --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsage.kt.181 @@ -0,0 +1,18 @@ +/** +Some documentation + + * @param a Some int + * @param b String + */ +fun testMethod(a: Int, b: String) { + +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsage.kt
public fun testMethod( +//INFO: a: Int, +//INFO: b: String +//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt index 06514ff6314..5fbda0490e1 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt @@ -15,4 +15,4 @@ fun test() { //INFO:
OnMethodUsageWithBracketsInParam.kt
public fun testMethod( //INFO: a: Int, //INFO: b: String -//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

+//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt.181 new file mode 100644 index 00000000000..06514ff6314 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithBracketsInParam.kt.181 @@ -0,0 +1,18 @@ +/** +Some documentation + + * @param[a] Some int + * @param[b] String + */ +fun testMethod(a: Int, b: String) { + +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsageWithBracketsInParam.kt
public fun testMethod( +//INFO: a: Int, +//INFO: b: String +//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt index e998be01014..5a7b0e05f07 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt @@ -14,4 +14,4 @@ fun test() { //INFO:
OnMethodUsageWithMultilineParam.kt
public fun testMethod( //INFO: test: String -//INFO: ): Unit

Some documentation on two lines.

Params:

test - String on two lines

+//INFO: ): Unit

Some documentation on two lines.

Params:

test - String on two lines

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt.181 new file mode 100644 index 00000000000..e998be01014 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithMultilineParam.kt.181 @@ -0,0 +1,17 @@ +/** + * Some documentation + * on two lines. + * + * @param test String + * on two lines + */ +fun testMethod(test: String) { +} + +fun test() { + testMethod("") +} + +//INFO:
OnMethodUsageWithMultilineParam.kt
public fun testMethod( +//INFO: test: String +//INFO: ): Unit

Some documentation on two lines.

Params:

test - String on two lines

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt index 5714d922cd4..f40bda065dc 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt @@ -15,4 +15,4 @@ fun test() { //INFO:
OnMethodUsageWithReceiver.kt
public fun Int.testMethod( //INFO: b: String -//INFO: ): Unit

Some documentation

Receiver:

Some int

Params:

b - String

Returns:

Return a and nothing else
+//INFO: ): Unit

Some documentation

Receiver:

Some int

Params:

b - String

Returns:

Return a and nothing else
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt.181 new file mode 100644 index 00000000000..5714d922cd4 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReceiver.kt.181 @@ -0,0 +1,18 @@ +/** +Some documentation + + * @receiver Some int + * @param b String + * @return Return [a] and nothing else + */ +fun Int.testMethod(b: String) { + +} + +fun test() { + 1.testMethod("value") +} + +//INFO:
OnMethodUsageWithReceiver.kt
public fun Int.testMethod( +//INFO: b: String +//INFO: ): Unit

Some documentation

Receiver:

Some int

Params:

b - String

Returns:

Return a and nothing else
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt index d3486f55442..87c03f8636e 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt @@ -16,4 +16,4 @@ fun test() { //INFO:
OnMethodUsageWithReturnAndLink.kt
public fun testMethod( //INFO: a: Int, //INFO: b: String -//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return a and nothing else
+//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return a and nothing else
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt.181 new file mode 100644 index 00000000000..d3486f55442 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndLink.kt.181 @@ -0,0 +1,19 @@ +/** +Some documentation + + * @param a Some int + * @param b String + * @return Return [a] and nothing else + */ +fun testMethod(a: Int, b: String) { + +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsageWithReturnAndLink.kt
public fun testMethod( +//INFO: a: Int, +//INFO: b: String +//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return a and nothing else
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt index 910718215c6..41d0846cf7e 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt @@ -17,4 +17,4 @@ fun test() { //INFO:
OnMethodUsageWithReturnAndThrows.kt
public fun testMethod( //INFO: a: Int, //INFO: b: String -//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return value

Throws:

IllegalArgumentException - if the weather is bad

+//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return value

Throws:

IllegalArgumentException - if the weather is bad

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt.181 new file mode 100644 index 00000000000..910718215c6 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithReturnAndThrows.kt.181 @@ -0,0 +1,20 @@ +/** +Some documentation + + * @param a Some int + * @param b String + * @return Return value + * @throws IllegalArgumentException if the weather is bad + */ +fun testMethod(a: Int, b: String) { + +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsageWithReturnAndThrows.kt
public fun testMethod( +//INFO: a: Int, +//INFO: b: String +//INFO: ): Unit

Some documentation

Params:

a - Some int

b - String

Returns:

Return value

Throws:

IllegalArgumentException - if the weather is bad

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt index c0489661507..543ffa7a097 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt @@ -17,4 +17,4 @@ fun test() { testMethod(1, "value") } -//INFO:
OnMethodUsageWithSee.kt
public fun testMethod(): Unit

See Also:

C, D, kotlin
+//INFO:
OnMethodUsageWithSee.kt
public fun testMethod(): Unit

See Also:

C, D, kotlin
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt.181 new file mode 100644 index 00000000000..c0489661507 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithSee.kt.181 @@ -0,0 +1,20 @@ +/** + * @see C + * @see D + * @see kotlin + */ +fun testMethod() { + +} + +class C { +} + +class D { +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsageWithSee.kt
public fun testMethod(): Unit

See Also:

C, D, kotlin
diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt index 05920c5e641..7d14a692d3c 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt @@ -16,4 +16,4 @@ fun test() { //INFO:
OnMethodUsageWithTypeParameter.kt
public fun <T> testMethod( //INFO: a: Int, //INFO: b: String -//INFO: ): Unit

Some documentation

Params:

T - the type parameter

a - Some int

b - String

+//INFO: ): Unit

Some documentation

Params:

T - the type parameter

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt.181 b/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt.181 new file mode 100644 index 00000000000..05920c5e641 --- /dev/null +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithTypeParameter.kt.181 @@ -0,0 +1,19 @@ +/** +Some documentation + + * @param T the type parameter + * @param a Some int + * @param b String + */ +fun testMethod(a: Int, b: String) { + +} + +fun test() { + testMethod(1, "value") +} + +//INFO:
OnMethodUsageWithTypeParameter.kt
public fun <T> testMethod( +//INFO: a: Int, +//INFO: b: String +//INFO: ): Unit

Some documentation

Params:

T - the type parameter

a - Some int

b - String

diff --git a/idea/testData/editor/quickDoc/Samples.kt b/idea/testData/editor/quickDoc/Samples.kt index 9ac8dbc7cb1..bc732ca17b9 100644 --- a/idea/testData/editor/quickDoc/Samples.kt +++ b/idea/testData/editor/quickDoc/Samples.kt @@ -21,7 +21,7 @@ fun castTextSpell(spell: String) { //INFO:
magic Samples.kt
public fun castTextSpell( //INFO: spell: String -//INFO: ): Unit

Samples:

Samples.sampleMagic


+//INFO: ): Unit

Samples:

Samples.sampleMagic


 //INFO: castTextSpell("[asd] [dse] [asz]")
 //INFO: 

sampleScroll


 //INFO: val reader = Scroll("[asd] [dse] [asz]").reader()
diff --git a/idea/testData/editor/quickDoc/Samples.kt.181 b/idea/testData/editor/quickDoc/Samples.kt.181
new file mode 100644
index 00000000000..9ac8dbc7cb1
--- /dev/null
+++ b/idea/testData/editor/quickDoc/Samples.kt.181
@@ -0,0 +1,29 @@
+package magic
+
+object Samples {
+    fun sampleMagic() {
+        castTextSpell("[asd] [dse] [asz]")
+    }
+}
+
+fun sampleScroll() {
+    val reader = Scroll("[asd] [dse] [asz]").reader()
+    castTextSpell(reader.readAll())
+}
+
+/**
+ * @sample Samples.sampleMagic
+ * @sample sampleScroll
+ */
+fun castTextSpell(spell: String) {
+    throw SecurityException("Magic prohibited outside Hogwarts")
+}
+
+//INFO: 
magic Samples.kt
public fun castTextSpell( +//INFO: spell: String +//INFO: ): Unit

Samples:

Samples.sampleMagic


+//INFO: castTextSpell("[asd] [dse] [asz]")
+//INFO: 

sampleScroll


+//INFO: val reader = Scroll("[asd] [dse] [asz]").reader()
+//INFO: castTextSpell(reader.readAll())
+//INFO: