KT-22815: Update quick-doc testData
This commit is contained in:
@@ -115,7 +115,9 @@ class WrapValueParameterHandler(val base: DescriptorRenderer.ValueParametersHand
|
||||
parameterCount: Int,
|
||||
builder: StringBuilder
|
||||
) {
|
||||
base.appendAfterValueParameter(parameter, parameterIndex, parameterCount, builder)
|
||||
if (parameterIndex != parameterCount - 1) {
|
||||
builder.append(",")
|
||||
}
|
||||
}
|
||||
|
||||
override fun appendAfterValueParameters(parameterCount: Int, builder: StringBuilder) {
|
||||
|
||||
@@ -6,4 +6,4 @@ fun context() {
|
||||
v<caret>
|
||||
}
|
||||
|
||||
//INFO: <pre><b>val</b> v: <anonymous object : <a href="psi_element://OurClass">OurClass</a>, <a href="psi_element://OurFace">OurFace</a>></pre>
|
||||
//INFO: <div class='definition'><pre><b>val</b> v: <anonymous object : <a href="psi_element://OurClass">OurClass</a>, <a href="psi_element://OurFace">OurFace</a>></pre></div>
|
||||
|
||||
@@ -9,4 +9,4 @@ class C {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>fun</b> foo(): Unit <i>defined in</i> C</pre><p>Use <a href="psi_element://SOME_REFERENCED_VAL">SOME_REFERENCED_VAL</a> to do something</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://C"><code>C</code></a><br><b>public</b> <b>final</b> <b>fun</b> foo(): Unit</pre></div><div class='content'><p>Use <a href="psi_element://SOME_REFERENCED_VAL">SOME_REFERENCED_VAL</a> to do something</p></div><table class='sections'></table>
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun some(<caret>f: (Int) -> String) : String? = null
|
||||
|
||||
//INFO: <pre><b>value-parameter</b> f: (Int) → String</pre>
|
||||
//INFO: <div class='definition'><pre><b>value-parameter</b> f: (Int) → String</pre></div>
|
||||
|
||||
@@ -4,4 +4,4 @@ fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>value-parameter</b> it: Int</pre>
|
||||
//INFO: <div class='definition'><pre><b>value-parameter</b> it: Int</pre></div>
|
||||
|
||||
@@ -4,4 +4,4 @@ fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>value-parameter</b> it: Int</pre>
|
||||
//INFO: <div class='definition'><pre><b>value-parameter</b> it: Int</pre></div>
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun context() {
|
||||
<caret>local()
|
||||
}
|
||||
|
||||
//INFO: <pre><b>local</b> <b>final</b> <b>fun</b> local(): Unit</pre>
|
||||
//INFO: <div class='definition'><pre><b>local</b> <b>final</b> <b>fun</b> local(): Unit</pre></div>
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ interface Base
|
||||
|
||||
class Some<<caret>T: Base>
|
||||
|
||||
//INFO: <pre><T : <a href="psi_element://Base">Base</a>> <i>defined in</i> Some</pre>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://Some"><code>Some</code></a><br><T : <a href="psi_element://Base">Base</a>></pre></div>
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ fun test() {
|
||||
}
|
||||
|
||||
|
||||
//INFO: <pre><b>val</b> test: String?</pre>
|
||||
//INFO: <div class='definition'><pre><b>val</b> test: String?</pre></div>
|
||||
|
||||
@@ -4,4 +4,4 @@ class C(var v: Int) {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>var</b> v: Int <i>defined in</i> C</pre>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://C"><code>C</code></a><br><b>public</b> <b>final</b> <b>var</b> v: Int</pre></div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
class <caret>A<T>
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>class</b> A<T> <i>defined in</i> root package <i>in file</i> EscapeHtmlInsideCodeBlocks.kt</pre><p>Code block:</p>
|
||||
//INFO: <div class='definition'><pre>(EscapeHtmlInsideCodeBlocks.kt)<br><b>public</b> <b>final</b> <b>class</b> A<T></pre></div><div class='content'><p>Code block:</p>
|
||||
//INFO: <pre><code>
|
||||
//INFO: A<T>
|
||||
//INFO: </code></pre><p>Code span: <code><T></code> is type parameter</p>
|
||||
//INFO: </code></pre><p>Code span: <code><T></code> is type parameter</p></div><table class='sections'></table>
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ fun Foo.bar() {
|
||||
foo(th<caret>is)
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> <a href="psi_element://Foo">Foo</a>.bar(): Unit <i>defined in</i> root package <i>in file</i> ExtensionReceiver.kt</pre>
|
||||
//INFO: <div class='definition'><pre>(ExtensionReceiver.kt)<br><b>public</b> <b>fun</b> <a href="psi_element://Foo">Foo</a>.bar(): Unit</pre></div></pre></div><table class='sections'><p></table>
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ fun Foo.bar() {
|
||||
foo(this<caret>)
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> <a href="psi_element://Foo">Foo</a>.bar(): Unit <i>defined in</i> root package <i>in file</i> ExtensionReceiverEnd.kt</pre>
|
||||
//INFO: <div class='definition'><pre>(ExtensionReceiverEnd.kt)<br><b>public</b> <b>fun</b> <a href="psi_element://Foo">Foo</a>.bar(): Unit</pre></div></pre></div><table class='sections'><p></table>
|
||||
|
||||
+2
-2
@@ -13,10 +13,10 @@
|
||||
*/
|
||||
class <caret>A
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>class</b> A <i>defined in</i> root package <i>in file</i> IndentedCodeBlock.kt</pre><br/><pre><code>val a = A()
|
||||
//INFO: <div class='definition'><pre>(IndentedCodeBlock.kt)<br><b>public</b> <b>final</b> <b>class</b> A</pre></div><div class='content'><pre><code>val a = A()
|
||||
//INFO: println(a) // comment</code></pre><pre><code>
|
||||
//INFO: <fenced>Code_block</fenced>
|
||||
//INFO: </code></pre><pre><code>val b = B()
|
||||
//INFO: println(b)</code></pre><p>some text content</p>
|
||||
//INFO: <pre><code>Indented code block with tab
|
||||
//INFO: Second line</code></pre>
|
||||
//INFO: Second line</code></pre></div><table class='sections'></table>
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ fun testing() {
|
||||
<caret>SomeClass<List<String>>()
|
||||
}
|
||||
|
||||
//INFO: <html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><PRE>public class <b>SomeClass</b><T extends <a href="psi_element://java.util.List"><code>List</code></a>>
|
||||
//INFO: extends <a href="psi_element://java.lang.Object"><code>Object</code></a></PRE>
|
||||
//INFO: <div class='definition'><pre>public class <b>SomeClass</b><T extends <a href="psi_element://java.util.List"><code>List</code></a>>
|
||||
//INFO: extends <a href="psi_element://java.lang.Object"><code>Object</code></a></pre></div><div class='content'>
|
||||
//INFO: Some Java Class
|
||||
//INFO: <DD><DL><DT><b>Type parameters:</b><DD><code><T></code> - </DD></DL></DD></body></html>
|
||||
//INFO: </div><table class='sections'><p><tr><td valign='top' class='section'><p>Type parameters:</td><td><T> – </td></table>
|
||||
|
||||
@@ -4,6 +4,6 @@ class A : OverrideMe() {
|
||||
}
|
||||
|
||||
|
||||
//INFO: <pre><b>protected</b> <b>open</b> <b>fun</b> overrideMe(): Unit <i>defined in</i> A</pre><DD><DL><DT><b>Description copied from class:</b> <a href="psi_element://OverrideMe"><code>OverrideMe</code></a><br>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://A"><code>A</code></a><br><b>protected</b> <b>open</b> <b>fun</b> overrideMe(): Unit</pre></div></pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>Description copied from class:</td><td><p><a href="psi_element://OverrideMe"><code>OverrideMe</code></a><br>
|
||||
//INFO: Some comment
|
||||
//INFO: </DD></DL></DD><DD><DL><DT><b>Overrides:</b><DD><a href="psi_element://OverrideMe#overrideMe()"><code>overrideMe</code></a> in class <a href="psi_element://OverrideMe"><code>OverrideMe</code></a></DD></DL></DD>
|
||||
//INFO: </td><tr><td valign='top' class='section'><p>Overrides:</td><td><p><a href="psi_element://OverrideMe#overrideMe()"><code>overrideMe</code></a> in class <a href="psi_element://OverrideMe"><code>OverrideMe</code></a></td></table>
|
||||
|
||||
@@ -4,6 +4,6 @@ class A : OverrideMe {
|
||||
}
|
||||
|
||||
|
||||
//INFO: <pre><b>public</b> <b>open</b> <b>fun</b> overrideMe(): Unit <i>defined in</i> A</pre><DD><DL><DT><b>Description copied from interface:</b> <a href="psi_element://OverrideMe"><code>OverrideMe</code></a><br>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://A"><code>A</code></a><br><b>public</b> <b>open</b> <b>fun</b> overrideMe(): Unit</pre></div></pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>Description copied from interface:</td><td><p><a href="psi_element://OverrideMe"><code>OverrideMe</code></a><br>
|
||||
//INFO: Some comment
|
||||
//INFO: </DD></DL></DD><DD><DL><DT><b>Specified by:</b><DD><a href="psi_element://OverrideMe#overrideMe()"><code>overrideMe</code></a> in interface <a href="psi_element://OverrideMe"><code>OverrideMe</code></a></DD></DL></DD>
|
||||
//INFO: </td><tr><td valign='top' class='section'><p>Specified by:</td><td><p><a href="psi_element://OverrideMe#overrideMe()"><code>overrideMe</code></a> in interface <a href="psi_element://OverrideMe"><code>OverrideMe</code></a></td></table>
|
||||
|
||||
+3
-7
@@ -2,12 +2,8 @@ fun ktTest() {
|
||||
Test.<caret>foo("SomeTest")
|
||||
}
|
||||
|
||||
//INFO: <html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://Test"><code>Test</code></a></b></small><PRE><i>@Contract(pure = true)</i>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://Test"><code>Test</code></a><br><i>@Contract(pure = true)</i>
|
||||
//INFO: <i>@<a href="psi_element://org.jetbrains.annotations.NotNull"><code>NotNull</code></a></i>
|
||||
//INFO: public static <a href="psi_element://java.lang.Object"><code>Object</code></a>[] <b>foo</b>(<a href="psi_element://java.lang.String"><code>String</code></a> param)</PRE>
|
||||
//INFO: public static <a href="psi_element://java.lang.Object"><code>Object</code></a>[] <b>foo</b>(<a href="psi_element://java.lang.String"><code>String</code></a> param)</pre></div><div class='content'>
|
||||
//INFO: Java Method
|
||||
//INFO:
|
||||
//INFO: <i>Inferred</i> annotations available:<br>
|
||||
//INFO: <ul>
|
||||
//INFO: <li><i>@org.jetbrains.annotations.Contract(pure = true)</i> <i>@<a href="psi_element://org.jetbrains.annotations.NotNull"><code>org.jetbrains.annotations.NotNull</code></a></i></li>
|
||||
//INFO: </ul></body></html>
|
||||
//INFO: <p></div><table class='sections'><p><tr><td valign='top' class='section'><p><i>Inferred</i> annotations:</td><td><p><i>@org.jetbrains.annotations.Contract(pure = true)</i> <i>@<a href="psi_element://org.jetbrains.annotations.NotNull"><code>org.jetbrains.annotations.NotNull</code></a></i></td></table>
|
||||
|
||||
@@ -6,4 +6,4 @@ class KotlinClassUsedFromJava {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>class</b> Test <i>defined in</i> testing <i>in file</i> KotlinClassUsedFromJava_Data.kt</pre><p>Some comment</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://testing"><code>testing</code></a> (KotlinClassUsedFromJava_Data.kt)<br><b>public</b> <b>final</b> <b>class</b> Test</pre></div><div class='content'><p>Some comment</p></div><table class='sections'></table>
|
||||
|
||||
@@ -6,5 +6,5 @@ class KotlinPackageClassUsedFromJava {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b>testing</b></small><PRE>public final class <b>testing.KotlinPackageClassUsedFromJava_DataKt</b>
|
||||
//INFO: extends <a href="psi_element://java.lang.Object"><code>Object</code></a></PRE></body></html>
|
||||
//INFO: <div class='definition'><pre>testing<br>public final class <b>testing.KotlinPackageClassUsedFromJava_DataKt</b>
|
||||
//INFO: extends <a href="psi_element://java.lang.Object"><code>Object</code></a></pre></div><table class='sections'></table>
|
||||
|
||||
+3
-1
@@ -2,4 +2,6 @@ fun test() {
|
||||
listOf(1, 2, 4).<caret>filter { it > 0 }
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>inline</b> <b>fun</b> <T> <a href="psi_element://kotlin.collections.Iterable">Iterable</a><<a href="psi_element://kotlin.collections.filter.T">T</a>>.filter(predicate: (<a href="psi_element://kotlin.collections.filter.T">T</a>) → Boolean): <a href="psi_element://kotlin.collections.List">List</a><<a href="psi_element://kotlin.collections.filter.T">T</a>> <i>defined in</i> kotlin.collections <i>in file</i> CollectionsKt.class</pre><p>Returns a list containing only elements matching the given <a href="psi_element://predicate">predicate</a>.</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://kotlin.collections"><code>kotlin.collections</code></a> (CollectionsKt.class)<br><b>public</b> <b>inline</b> <b>fun</b> <T> <a href="psi_element://kotlin.collections.Iterable">Iterable</a><<a href="psi_element://kotlin.collections.filter.T">T</a>>.filter(
|
||||
//INFO: predicate: (<a href="psi_element://kotlin.collections.filter.T">T</a>) → Boolean
|
||||
//INFO: ): <a href="psi_element://kotlin.collections.List">List</a><<a href="psi_element://kotlin.collections.filter.T">T</a>></pre></div><div class='content'><p>Returns a list containing only elements matching the given <a href="psi_element://predicate">predicate</a>.</p></div><table class='sections'></table>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
*/
|
||||
class <caret>Some
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>class</b> Some <i>defined in</i> root package <i>in file</i> OnClassDeclarationWithNoPackage.kt</pre><p>Usefull comment</p>
|
||||
//INFO: <div class='definition'><pre>(OnClassDeclarationWithNoPackage.kt)<br><b>public</b> <b>final</b> <b>class</b> Some</pre></div><div class='content'><p>Usefull comment</p></div><table class='sections'></table>
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ fun use() {
|
||||
Some<caret>Enum::class
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>> <i>defined in</i> root package <i>in file</i> OnEnumClassReference.kt</pre><p>Useless one</p>
|
||||
//INFO: <div class='definition'><pre>(OnEnumClassReference.kt)<br><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>></pre></div><div class='content'><p>Useless one</p></div><table class='sections'></table>
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
*/
|
||||
enum class SomeEnum<caret>
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>> <i>defined in</i> root package <i>in file</i> OnEnumDeclaration.kt</pre><p>Useless one</p>
|
||||
//INFO: <div class='definition'><pre>(OnEnumDeclaration.kt)<br><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>></pre></div><div class='content'><p>Useless one</p></div><table class='sections'></table>
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ enum class TestEnum{
|
||||
|
||||
|
||||
|
||||
//INFO: <pre><b>enum entry</b> C <i>defined in</i> TestEnum</pre><b>Enum constant ordinal: 2</b>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://TestEnum"><code>TestEnum</code></a><br><b>enum entry</b> CEnum constant ordinal: 2</pre></div>
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
TestEnum.<caret>C
|
||||
}
|
||||
|
||||
//INFO: <pre><b>enum entry</b> C <i>defined in</i> TestEnum</pre><b>Enum constant ordinal: 2</b>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://TestEnum"><code>TestEnum</code></a><br><b>enum entry</b> CEnum constant ordinal: 2</pre></div>
|
||||
|
||||
+1
-1
@@ -9,4 +9,4 @@ fun use() {
|
||||
Some<caret>Enum.One
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>> <i>defined in</i> root package <i>in file</i> OnEnumUsage.kt</pre><p>Enum of 1, 2</p>
|
||||
//INFO: <div class='definition'><pre>(OnEnumUsage.kt)<br><b>public</b> <b>final</b> <b>enum class</b> SomeEnum : <a href="psi_element://kotlin.Enum">Enum</a><<a href="psi_element://SomeEnum">SomeEnum</a>></pre></div><div class='content'><p>Enum of 1, 2</p></div><table class='sections'></table>
|
||||
|
||||
+3
-2
@@ -7,5 +7,6 @@ fun use() {
|
||||
}
|
||||
|
||||
|
||||
//INFO: <b>public</b> <b>final</b> <b>fun</b> valueOf(value: String): <a href="psi_element://E">E</a> <i>defined in</i> E<p>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.)</p>
|
||||
//INFO: <dl><dt><b>Throws:</b></dt><dd><code>IllegalArgumentException</code> - if this enum type has no constant with the specified name</dd></dl>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://E"><code>E</code></a><br><b>public</b> <b>final</b> <b>fun</b> valueOf(
|
||||
//INFO: value: String
|
||||
//INFO: ): <a href="psi_element://E">E</a></pre></div><div class='content'><p>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.)</p></div><table class='sections'><tr><td valign='top' class='section'><p>Throws</td><td><p><code>IllegalArgumentException</code> - if this enum type has no constant with the specified name</td></table>
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun use() {
|
||||
E.values<caret>()
|
||||
}
|
||||
|
||||
//INFO: <b>public</b> <b>final</b> <b>fun</b> values(): Array<<a href="psi_element://E">E</a>> <i>defined in</i> E<p>Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://E"><code>E</code></a><br><b>public</b> <b>final</b> <b>fun</b> values(): Array<<a href="psi_element://E">E</a>></pre></div><div class='content'><p>Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.</p></div><table class='sections'></table>
|
||||
|
||||
@@ -12,5 +12,7 @@ package test
|
||||
*/
|
||||
fun <caret>testFun(first: String, second: Int) = 12
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testFun(first: String, second: Int): Int <i>defined in</i> test <i>in file</i> OnFunctionDeclarationWithPackage.kt</pre><p>Test function</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>first</code> - Some</dd><dd><code>second</code> - Other</dd></dl>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://test"><code>test</code></a> (OnFunctionDeclarationWithPackage.kt)<br><b>public</b> <b>fun</b> testFun(
|
||||
//INFO: first: String,
|
||||
//INFO: second: Int
|
||||
//INFO: ): Int</pre></div><div class='content'><p>Test function</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>first</code> - Some<p><code>second</code> - Other</td></table>
|
||||
|
||||
+1
-1
@@ -14,4 +14,4 @@ fun test() {
|
||||
D().f<caret>oo()
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>open</b> <b>fun</b> foo(): Int <i>defined in</i> D</pre><p>This method returns zero.</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://D"><code>D</code></a><br><b>public</b> <b>open</b> <b>fun</b> foo(): Int</pre></div><div class='content'><p>This method returns zero.</p></div><table class='sections'></table>
|
||||
|
||||
@@ -14,4 +14,4 @@ fun test() {
|
||||
D().f<caret>oo
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>open</b> <b>val</b> foo: Int <i>defined in</i> D</pre><p>This property returns zero.</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://D"><code>D</code></a><br><b>public</b> <b>open</b> <b>val</b> foo: Int</pre></div><div class='content'><p>This property returns zero.</p></div><table class='sections'></table>
|
||||
|
||||
+4
-2
@@ -12,5 +12,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(a: Int, b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsage.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>a</code> - Some int</dd><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsage.kt)<br><b>public</b> <b>fun</b> testMethod(
|
||||
//INFO: a: Int,
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>a</code> - Some int<p><code>b</code> - String</td></table>
|
||||
|
||||
+1
-1
@@ -10,4 +10,4 @@ fun test() {
|
||||
<caret>testMethod()
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageMultiline.kt</pre><p>Some documentation on two lines.</p>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageMultiline.kt)<br><b>public</b> <b>fun</b> testMethod(): Unit</pre></div><div class='content'><p>Some documentation on two lines.</p></div><table class='sections'></table>
|
||||
|
||||
@@ -12,5 +12,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(a: Int, b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithBracketsInParam.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>a</code> - Some int</dd><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithBracketsInParam.kt)<br><b>public</b> <b>fun</b> testMethod(
|
||||
//INFO: a: Int,
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>a</code> - Some int<p><code>b</code> - String</td></table>
|
||||
|
||||
@@ -24,7 +24,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithCodeBlock.kt</pre><p>Some documentation.</p>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithCodeBlock.kt)<br><b>public</b> <b>fun</b> testMethod(): Unit</pre></div><div class='content'><p>Some documentation.</p>
|
||||
//INFO: <pre><code>
|
||||
//INFO: Code block
|
||||
//INFO: Second line
|
||||
@@ -32,4 +32,4 @@ fun test() {
|
||||
//INFO: Third line
|
||||
//INFO: </code></pre><p>Text between code blocks.</p>
|
||||
//INFO: <pre><code>
|
||||
//INFO: </code></pre><p>Text after code block.</p>
|
||||
//INFO: </code></pre><p>Text after code block.</p></div><table class='sections'></table>
|
||||
|
||||
@@ -27,10 +27,10 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithMarkdown.kt</pre><p>Some documentation. <strong>Bold</strong> <em>underline</em> <code>code</code> foo: bar (baz) <a href="psi_element://quux">quux</a> 'apos'</p>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithMarkdown.kt)<br><b>public</b> <b>fun</b> testMethod(): Unit</pre></div><div class='content'><p>Some documentation. <strong>Bold</strong> <em>underline</em> <code>code</code> foo: bar (baz) <a href="psi_element://quux">quux</a> 'apos'</p>
|
||||
//INFO: <p><a href="http://www.kotlinlang.org">Kotlin</a> <a href="http://www.ibm.com">a<strong>b</strong><strong>d</strong> kas</a></p>
|
||||
//INFO: <p><a href="psi_element://C">C</a></p>
|
||||
//INFO: <p><a href="psi_element://C">See <strong>this</strong> class</a></p>
|
||||
//INFO: <p>This is <em>emphasized text</em> but text_with_underscores has to preserve the underscores. Single stars embedded in a word like Embedded*Star have to be preserved as well.</p>
|
||||
//INFO: <p>Exclamation marks are also important! Also in <code>code blocks!</code></p>
|
||||
//INFO: <p>bt+ : <code>prefix ` postfix</code> backslash: <code>\</code></p>
|
||||
//INFO: <p>bt+ : <code>prefix ` postfix</code> backslash: <code>\</code></p></div><table class='sections'></table>
|
||||
|
||||
@@ -12,5 +12,6 @@ fun test() {
|
||||
<caret>testMethod("")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(test: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithMultilineParam.kt</pre><p>Some documentation on two lines.</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>test</code> - String on two lines</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithMultilineParam.kt)<br><b>public</b> <b>fun</b> testMethod(
|
||||
//INFO: test: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation on two lines.</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>test</code> - String on two lines</td></table>
|
||||
|
||||
@@ -13,7 +13,6 @@ fun test() {
|
||||
1.<caret>testMethod("value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> Int.testMethod(b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithReceiver.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Receiver:</b></dt><dd>Some int</dd></dl>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <dl><dt><b>Returns:</b></dt><dd>Return <a href="psi_element://a">a</a> and nothing else</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithReceiver.kt)<br><b>public</b> <b>fun</b> Int.testMethod(
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Receiver</td><td></td><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>b</code> - String</td><tr><td valign='top' class='section'><p>Returns</td><td></td></table>
|
||||
|
||||
@@ -13,6 +13,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(a: Int, b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithReturnAndLink.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>a</code> - Some int</dd><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <dl><dt><b>Returns:</b></dt><dd>Return <a href="psi_element://a">a</a> and nothing else</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithReturnAndLink.kt)<br><b>public</b> <b>fun</b> testMethod(
|
||||
//INFO: a: Int,
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>a</code> - Some int<p><code>b</code> - String</td><tr><td valign='top' class='section'><p>Returns</td><td></td></table>
|
||||
|
||||
@@ -14,7 +14,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(a: Int, b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithReturnAndThrows.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>a</code> - Some int</dd><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <dl><dt><b>Returns:</b></dt><dd>Return value</dd></dl>
|
||||
//INFO: <dl><dt><b>Throws:</b></dt><dd><code>IllegalArgumentException</code> - if the weather is bad</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithReturnAndThrows.kt)<br><b>public</b> <b>fun</b> testMethod(
|
||||
//INFO: a: Int,
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>a</code> - Some int<p><code>b</code> - String</td><tr><td valign='top' class='section'><p>Returns</td><td></td><tr><td valign='top' class='section'><p>Throws</td><td><p><code>IllegalArgumentException</code> - if the weather is bad</td></table>
|
||||
|
||||
+1
-2
@@ -17,5 +17,4 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithSee.kt</pre><br/>
|
||||
//INFO: <DD><DL><DT><b>See Also:</b><DD><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a>, <a href="http://kotl.in">kotlin</a></DD></DL></DD>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithSee.kt)<br><b>public</b> <b>fun</b> testMethod(): Unit</pre></div><div class='content'></div><table class='sections'><tr><td valign='top' class='section'><p>See Also</td><td><a href="psi_element://C"><code>C</code></a>, <a href="psi_element://D"><code>D</code></a>, <a href="http://kotl.in">kotlin</a></td></table>
|
||||
|
||||
@@ -13,5 +13,7 @@ fun test() {
|
||||
<caret>testMethod(1, "value")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> <T> testMethod(a: Int, b: String): Unit <i>defined in</i> root package <i>in file</i> OnMethodUsageWithTypeParameter.kt</pre><p>Some documentation</p>
|
||||
//INFO: <dl><dt><b>Parameters:</b></dt><dd><code>T</code> - the type parameter</dd><dd><code>a</code> - Some int</dd><dd><code>b</code> - String</dd></dl>
|
||||
//INFO: <div class='definition'><pre>(OnMethodUsageWithTypeParameter.kt)<br><b>public</b> <b>fun</b> <T> testMethod(
|
||||
//INFO: a: Int,
|
||||
//INFO: b: String
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>Some documentation</p></div><table class='sections'><tr><td valign='top' class='section'><p>Parameters</td><td><p><code>T</code> - the type parameter<p><code>a</code> - Some int<p><code>b</code> - String</td></table>
|
||||
|
||||
+5
-4
@@ -19,10 +19,11 @@ fun <caret>castTextSpell(spell: String) {
|
||||
throw SecurityException("Magic prohibited outside Hogwarts")
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> castTextSpell(spell: String): Unit <i>defined in</i> magic <i>in file</i> Samples.kt</pre><br/>
|
||||
//INFO: <dl><dt><b>Samples:</b></dt><dd><a href="psi_element://Samples.sampleMagic"><code>Samples.sampleMagic</code></a><pre><code>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://magic"><code>magic</code></a> (Samples.kt)<br><b>public</b> <b>fun</b> castTextSpell(
|
||||
//INFO: spell: String
|
||||
//INFO: ): Unit</pre></div><div class='content'></div><table class='sections'><tr><td valign='top' class='section'><p>Samples</td><td><p><a href="psi_element://Samples.sampleMagic"><code>Samples.sampleMagic</code></a><pre><code>
|
||||
//INFO: castTextSpell("[asd] [dse] [asz]")
|
||||
//INFO: </code></pre></dd><dd><a href="psi_element://sampleScroll"><code>sampleScroll</code></a><pre><code>
|
||||
//INFO: </code></pre><p><a href="psi_element://sampleScroll"><code>sampleScroll</code></a><pre><code>
|
||||
//INFO: val reader = Scroll("[asd] [dse] [asz]").reader()
|
||||
//INFO: castTextSpell(reader.readAll())
|
||||
//INFO: </code></pre></dd></dl>
|
||||
//INFO: </code></pre></td></table>
|
||||
|
||||
@@ -8,4 +8,6 @@ class Testing {
|
||||
}
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> foo(bar: Int): Unit <i>defined in</i> some <i>in file</i> TopLevelMethodFromJava_Data.kt</pre><p>KDoc foo</p>
|
||||
//INFO: <div class='definition'><pre><a href="psi_element://some"><code>some</code></a> (TopLevelMethodFromJava_Data.kt)<br><b>public</b> <b>fun</b> foo(
|
||||
//INFO: bar: Int
|
||||
//INFO: ): Unit</pre></div><div class='content'><p>KDoc foo</p></div><table class='sections'></table>
|
||||
|
||||
@@ -8,4 +8,6 @@ fun main(args: Array<String>) {
|
||||
<caret>foo()
|
||||
}
|
||||
|
||||
//INFO: <pre><b>public</b> <b>fun</b> foo(x: <a href="psi_element://A">A</a>): Unit <i>defined in</i> root package <i>in file</i> TypeNamesFromStdLibNavigation.kt</pre>
|
||||
//INFO: <div class='definition'><pre>(TypeNamesFromStdLibNavigation.kt)<br><b>public</b> <b>fun</b> foo(
|
||||
//INFO: x: <a href="psi_element://A">A</a>
|
||||
//INFO: ): Unit</pre></div></pre></div><table class='sections'><p></table>
|
||||
|
||||
Reference in New Issue
Block a user