diff options
Diffstat (limited to 'test/data')
50 files changed, 281 insertions, 36 deletions
diff --git a/test/data/classes/annotatedClass.kt b/test/data/classes/annotatedClass.kt index 62c6f0ec..1b58f56c 100644 --- a/test/data/classes/annotatedClass.kt +++ b/test/data/classes/annotatedClass.kt @@ -1 +1 @@ -data class Foo() {} +@Strictfp class Foo() {} diff --git a/test/data/classes/annotatedClassWithAnnotationParameters.kt b/test/data/classes/annotatedClassWithAnnotationParameters.kt index 1af97e75..930d6a62 100644 --- a/test/data/classes/annotatedClassWithAnnotationParameters.kt +++ b/test/data/classes/annotatedClassWithAnnotationParameters.kt @@ -1 +1 @@ -deprecated("should no longer be used") class Foo() {} +@Deprecated("should no longer be used") class Foo() {} diff --git a/test/data/classes/dataClass.kt b/test/data/classes/dataClass.kt new file mode 100644 index 00000000..62c6f0ec --- /dev/null +++ b/test/data/classes/dataClass.kt @@ -0,0 +1 @@ +data class Foo() {} diff --git a/test/data/classes/javaAnnotationClass.kt b/test/data/classes/javaAnnotationClass.kt index c5f5cac4..95600147 100644 --- a/test/data/classes/javaAnnotationClass.kt +++ b/test/data/classes/javaAnnotationClass.kt @@ -1,5 +1,5 @@ import java.lang.annotation.Retention import java.lang.annotation.RetentionPolicy -Retention(RetentionPolicy.SOURCE) +@Retention(RetentionPolicy.SOURCE) public annotation class throws() diff --git a/test/data/classes/sealedClass.kt b/test/data/classes/sealedClass.kt new file mode 100644 index 00000000..93350393 --- /dev/null +++ b/test/data/classes/sealedClass.kt @@ -0,0 +1 @@ +sealed class Foo() {} diff --git a/test/data/format/annotatedTypeParameter.kt b/test/data/format/annotatedTypeParameter.kt new file mode 100644 index 00000000..cc3bfc1a --- /dev/null +++ b/test/data/format/annotatedTypeParameter.kt @@ -0,0 +1,2 @@ +public fun <E> containsAll(elements: Collection<@UnsafeVariance E>): @UnsafeVariance E { +} diff --git a/test/data/format/annotatedTypeParameter.md b/test/data/format/annotatedTypeParameter.md new file mode 100644 index 00000000..7d26a162 --- /dev/null +++ b/test/data/format/annotatedTypeParameter.md @@ -0,0 +1,8 @@ +[test](test/index) / [containsAll](test/contains-all) + + +# containsAll + +`fun <E> containsAll(elements: Collection<@UnsafeVariance E>): @UnsafeVariance E` + + diff --git a/test/data/format/annotationParams.kt b/test/data/format/annotationParams.kt index ee5b524a..f259a740 100644 --- a/test/data/format/annotationParams.kt +++ b/test/data/format/annotationParams.kt @@ -1 +1 @@ -inlineOptions(InlineOption.LOCAL_CONTINUE_AND_BREAK) fun f() {} +@JvmName("FFF") fun f() {} diff --git a/test/data/format/annotationParams.md b/test/data/format/annotationParams.md index 80fe52cf..8cdd6e96 100644 --- a/test/data/format/annotationParams.md +++ b/test/data/format/annotationParams.md @@ -3,6 +3,6 @@ # f -`inlineOptions([InlineOption.LOCAL_CONTINUE_AND_BREAK]) fun f(): Unit` +`@JvmName("FFF") fun f(): Unit` diff --git a/test/data/format/annotations.md b/test/data/format/annotations.md index caf84084..b898d55c 100644 --- a/test/data/format/annotations.md +++ b/test/data/format/annotations.md @@ -16,11 +16,11 @@ ### Properties -| [x](test/-foo/x) | `inline val x: Int` | +| [x](test/-foo/x) | `val x: Int` | ### Functions -| [bar](test/-foo/bar) | `inline fun bar(noinline notInlined: () -> Unit): Unit` | +| [bar](test/-foo/bar) | `fun bar(notInlined: () -> Unit): Unit` | diff --git a/test/data/format/crossLanguage/kotlinExtendsJava/Bar.html b/test/data/format/crossLanguage/kotlinExtendsJava/Bar.html index 5b93d837..e7b139d8 100644 --- a/test/data/format/crossLanguage/kotlinExtendsJava/Bar.html +++ b/test/data/format/crossLanguage/kotlinExtendsJava/Bar.html @@ -22,5 +22,16 @@ </tr> </tbody> </table> +<h3>Inherited Functions</h3> +<table> +<tbody> +<tr> +<td> +<a href="test/test/-foo/xyzzy">xyzzy</a></td> +<td> +<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">xyzzy</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td> +</tr> +</tbody> +</table> </BODY> </HTML> diff --git a/test/data/format/deprecated.kt b/test/data/format/deprecated.kt index 9ee2c1d6..4fc568c2 100644 --- a/test/data/format/deprecated.kt +++ b/test/data/format/deprecated.kt @@ -1,5 +1,5 @@ -deprecated("This class sucks") class C() { } +@Deprecated("This class sucks") class C() { } -deprecated("This function sucks") fun f() { } +@Deprecated("This function sucks") fun f() { } -deprecated("This property sucks") val p: Int get() = 0 +@Deprecated("This property sucks") val p: Int get() = 0 diff --git a/test/data/format/enumClass.kt b/test/data/format/enumClass.kt index 5988c644..c1af69d8 100644 --- a/test/data/format/enumClass.kt +++ b/test/data/format/enumClass.kt @@ -1,4 +1,4 @@ public enum class InlineOption { - LOCAL_CONTINUE_AND_BREAK + LOCAL_CONTINUE_AND_BREAK, ONLY_LOCAL_RETURN } diff --git a/test/data/format/enumClass.md b/test/data/format/enumClass.md index da1ef851..7a0e03ff 100644 --- a/test/data/format/enumClass.md +++ b/test/data/format/enumClass.md @@ -3,7 +3,7 @@ # InlineOption -`public enum class InlineOption` +`enum class InlineOption` diff --git a/test/data/format/extensionFunctionParameter.kt b/test/data/format/extensionFunctionParameter.kt new file mode 100644 index 00000000..bfb344b9 --- /dev/null +++ b/test/data/format/extensionFunctionParameter.kt @@ -0,0 +1 @@ +public inline fun <T> T.apply(f: T.() -> Unit): T { f(); return this } diff --git a/test/data/format/extensionFunctionParameter.md b/test/data/format/extensionFunctionParameter.md new file mode 100644 index 00000000..6980912d --- /dev/null +++ b/test/data/format/extensionFunctionParameter.md @@ -0,0 +1,8 @@ +[test](test/index) / [apply](test/apply) + + +# apply + +`inline fun <T> T.apply(f: T.() -> Unit): T` + + diff --git a/test/data/format/extensions.class.md b/test/data/format/extensions.class.md index 33721e67..c66cdb01 100644 --- a/test/data/format/extensions.class.md +++ b/test/data/format/extensions.class.md @@ -1,15 +1,15 @@ -[test](test/index) / [foo](test/foo/index) / [String](test/foo/-string/index) +[test](test/index) / [foo](test/foo/index) / [kotlin.String](test/foo/kotlin.-string/index) -### Extensions for String +### Extensions for kotlin.String -| [fn](test/foo/-string/fn) | `fun String.fn(): Unit` +| [fn](test/foo/kotlin.-string/fn) | `fun String.fn(): Unit` `fun String.fn(x: Int): Unit` Function with receiver | -| [foobar](test/foo/-string/foobar) | `val String.foobar: Int` +| [foobar](test/foo/kotlin.-string/foobar) | `val String.foobar: Int` Property with receiver. | diff --git a/test/data/format/extensions.package.md b/test/data/format/extensions.package.md index 17829ba0..76ff3676 100644 --- a/test/data/format/extensions.package.md +++ b/test/data/format/extensions.package.md @@ -7,5 +7,5 @@ ### Extensions for External Classes -| [String](test/foo/-string/index) | | +| [kotlin.String](test/foo/kotlin.-string/index) | | diff --git a/test/data/format/inheritedExtensions.kt b/test/data/format/inheritedExtensions.kt new file mode 100644 index 00000000..e38fe00d --- /dev/null +++ b/test/data/format/inheritedExtensions.kt @@ -0,0 +1,11 @@ +open class Foo + +class Bar : Foo() + +fun Foo.first() { + +} + +fun Bar.second() { + +} diff --git a/test/data/format/inheritedExtensions.md b/test/data/format/inheritedExtensions.md new file mode 100644 index 00000000..79137eac --- /dev/null +++ b/test/data/format/inheritedExtensions.md @@ -0,0 +1,21 @@ +[test](test/index) / [Bar](test/-bar/index) + + +# Bar + +`class Bar : [Foo](test/-foo/index)` + + + +### Constructors + + +| [<init>](test/-bar/-init-) | `Bar()` | + + +### Extension Functions + + +| [first](test/first) | `fun [Foo](test/-foo/index).first(): Unit` | +| [second](test/second) | `fun [Bar](test/-bar/index).second(): Unit` | + diff --git a/test/data/format/inheritedMembers.kt b/test/data/format/inheritedMembers.kt new file mode 100644 index 00000000..2d0c4ca1 --- /dev/null +++ b/test/data/format/inheritedMembers.kt @@ -0,0 +1,12 @@ +open class Foo { + fun first() { + } + + val firstProp: Int = 0 +} + +class Bar : Foo() { + fun second() + + val secondProp: Int = 1 +} diff --git a/test/data/format/inheritedMembers.md b/test/data/format/inheritedMembers.md new file mode 100644 index 00000000..d58d3974 --- /dev/null +++ b/test/data/format/inheritedMembers.md @@ -0,0 +1,38 @@ +[test](test/index) / [Bar](test/-bar/index) + + +# Bar + +`class Bar : [Foo](test/-foo/index)` + + + +### Constructors + + +| [<init>](test/-bar/-init-) | `Bar()` | + + +### Properties + + +| [secondProp](test/-bar/second-prop) | `val secondProp: Int` | + + +### Inherited Properties + + +| [firstProp](test/-foo/first-prop) | `val firstProp: Int` | + + +### Functions + + +| [second](test/-bar/second) | `fun second(): Unit` | + + +### Inherited Functions + + +| [first](test/-foo/first) | `fun first(): Unit` | + diff --git a/test/data/format/javaDeprecated.html b/test/data/format/javaDeprecated.html index 8410e7ca..9e8958a2 100644 --- a/test/data/format/javaDeprecated.html +++ b/test/data/format/javaDeprecated.html @@ -6,7 +6,7 @@ <a href="test/index">test</a> / <a href="test/test/index">test</a> / <a href="test/test/-foo/index">Foo</a> / <a href="test/test/-foo/foo">foo</a><br/> <br/> <h1>foo</h1> -<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> +<code><span class="keyword">open</span> <span class="keyword">fun </span><s><span class="identifier">foo</span></s><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <strong>Deprecated:</strong> use <code><a href="test/test/-foo/bar">#bar</a></code> instead <p></p> <br/> <br/> diff --git a/test/data/format/javaSupertype.html b/test/data/format/javaSupertype.html index 3a93da0a..2bcc2fce 100644 --- a/test/data/format/javaSupertype.html +++ b/test/data/format/javaSupertype.html @@ -6,7 +6,7 @@ <a href="test/index">test</a> / <a href="test/test/index">test</a> / <a href="test/test/-c/index">C</a> / <a href="test/test/-c/-bar/index">Bar</a><br/> <br/> <h1>Bar</h1> -<code><span class="keyword">public</span> <span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Bar</span> <span class="symbol">:</span> <a href="test/test/-c/-foo"><span class="identifier">Foo</span></a></code><br/> +<code><span class="keyword">open</span> <span class="keyword">class </span><span class="identifier">Bar</span> <span class="symbol">:</span> <a href="test/test/-c/-foo"><span class="identifier">Foo</span></a></code><br/> <br/> <br/> <h3>Functions</h3> diff --git a/test/data/format/javadocHtml.md b/test/data/format/javadocHtml.md index 64b7a5a4..a75ebf35 100644 --- a/test/data/format/javadocHtml.md +++ b/test/data/format/javadocHtml.md @@ -3,7 +3,7 @@ # C -`public open class C` +`open class C` **Bold** **Strong** *Italic* *Emphasized* Paragraph diff --git a/test/data/format/javadocOrderedList.md b/test/data/format/javadocOrderedList.md index ba5935e2..acd3e809 100644 --- a/test/data/format/javadocOrderedList.md +++ b/test/data/format/javadocOrderedList.md @@ -3,7 +3,7 @@ # Bar -`public open class Bar` +`open class Bar` 1. Rinse 1. Repeat diff --git a/test/data/format/operatorOverloading.md b/test/data/format/operatorOverloading.md index fd0fa977..05fe3206 100644 --- a/test/data/format/operatorOverloading.md +++ b/test/data/format/operatorOverloading.md @@ -4,5 +4,5 @@ # plus `fun plus(other: [C](test/-c/index)): [C](test/-c/index)` -Implements **operator `+`** + diff --git a/test/data/format/orderedList.html b/test/data/format/orderedList.html index 223684ff..9917568f 100644 --- a/test/data/format/orderedList.html +++ b/test/data/format/orderedList.html @@ -8,7 +8,6 @@ <h1>Bar</h1> <code><span class="keyword">class </span><span class="identifier">Bar</span></code><br/> <p>Usage instructions:</p> -<h3>Description</h3> <ol><li><p>Rinse</p> </li><li><p>Repeat</p> </li></ol><br/> diff --git a/test/data/format/overloadsWithDescription.html b/test/data/format/overloadsWithDescription.html index a0a27b8c..a0efb472 100644 --- a/test/data/format/overloadsWithDescription.html +++ b/test/data/format/overloadsWithDescription.html @@ -9,7 +9,6 @@ <code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="identifier">x</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="identifier">x</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <p>Performs an action on <a href="test/f#x">x</a>.</p> -<h3>Description</h3> <p>This is a long description.</p> <br/> <br/> diff --git a/test/data/format/overloadsWithDifferentDescriptions.html b/test/data/format/overloadsWithDifferentDescriptions.html index a2cc21f4..30a37e75 100644 --- a/test/data/format/overloadsWithDifferentDescriptions.html +++ b/test/data/format/overloadsWithDifferentDescriptions.html @@ -8,7 +8,6 @@ <h1>f</h1> <code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="identifier">x</span><span class="symbol">:</span> <span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <p>Performs an action on x.</p> -<h3>Description</h3> <p>This is a long description.</p> <br/> <br/> @@ -19,7 +18,6 @@ <br/> <code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="identifier">x</span><span class="symbol">:</span> <span class="identifier">String</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <p>Performs an action on x.</p> -<h3>Description</h3> <p>This is a long description.</p> <br/> <br/> diff --git a/test/data/format/parameterAnchor.html b/test/data/format/parameterAnchor.html index 99f0f110..c5920fb7 100644 --- a/test/data/format/parameterAnchor.html +++ b/test/data/format/parameterAnchor.html @@ -6,7 +6,7 @@ <a href="test/index">test</a> / <a href="test/process-files">processFiles</a><br/> <br/> <h1>processFiles</h1> -<code><span class="keyword">public</span> <span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span> <span class="identifier">processFiles</span><span class="symbol">(</span><span class="identifier">processor</span><span class="symbol">:</span> <span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="identifier">T</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code><br/> +<code><span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span> <span class="identifier">processFiles</span><span class="symbol">(</span><span class="identifier">processor</span><span class="symbol">:</span> <span class="symbol">(</span><span class="symbol">)</span> <span class="symbol">-></span> <span class="identifier">T</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">List</span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span></code><br/> <p>Runs <a href="test/process-files#processor">processor</a> for each file and collects its results into single list</p> <h3>Parameters</h3> <a name="processor"></a> diff --git a/test/data/format/reifiedTypeParameter.kt b/test/data/format/reifiedTypeParameter.kt new file mode 100644 index 00000000..00fa1dc9 --- /dev/null +++ b/test/data/format/reifiedTypeParameter.kt @@ -0,0 +1,3 @@ +inline fun f<reified T>() { + +} diff --git a/test/data/format/reifiedTypeParameter.md b/test/data/format/reifiedTypeParameter.md new file mode 100644 index 00000000..2e96018e --- /dev/null +++ b/test/data/format/reifiedTypeParameter.md @@ -0,0 +1,8 @@ +[test](test/index) / [f](test/f) + + +# f + +`inline fun <reified T> f(): Unit` + + diff --git a/test/data/format/starProjection.kt b/test/data/format/starProjection.kt new file mode 100644 index 00000000..48d53e47 --- /dev/null +++ b/test/data/format/starProjection.kt @@ -0,0 +1,3 @@ +public fun Iterable<*>.containsFoo(element: Any?): Boolean { + return false +} diff --git a/test/data/format/starProjection.md b/test/data/format/starProjection.md new file mode 100644 index 00000000..c9be2f58 --- /dev/null +++ b/test/data/format/starProjection.md @@ -0,0 +1,8 @@ +[test](test/index) / [kotlin.Iterable](test/kotlin.-iterable/index) + + +### Extensions for kotlin.Iterable + + +| [containsFoo](test/kotlin.-iterable/contains-foo) | `fun Iterable<*>.containsFoo(element: Any?): Boolean` | + diff --git a/test/data/format/summarizeSignatures.kt b/test/data/format/summarizeSignatures.kt new file mode 100644 index 00000000..1d875a50 --- /dev/null +++ b/test/data/format/summarizeSignatures.kt @@ -0,0 +1,20 @@ +package kotlin + +class Array<T> +class IntArray +class CharArray + +/** + * Returns true if foo. + */ +fun IntArray.foo(predicate: (Int) -> Boolean): Boolean = false + +/** + * Returns true if foo. + */ +fun CharArray.foo(predicate: (Char) -> Boolean): Boolean = false + +/** + * Returns true if foo. + */ +fun <T> Array<T>.foo(predicate: (T) -> Boolean): Boolean = false diff --git a/test/data/format/summarizeSignatures.md b/test/data/format/summarizeSignatures.md new file mode 100644 index 00000000..b1707f40 --- /dev/null +++ b/test/data/format/summarizeSignatures.md @@ -0,0 +1,23 @@ +[test](test/index) / [kotlin](test/kotlin/index) + + +## Package kotlin + + +### Types + + +| [Array](test/kotlin/-array/index) | `class Array<T>` | +| [CharArray](test/kotlin/-char-array/index) | `class CharArray` | +| [IntArray](test/kotlin/-int-array/index) | `class IntArray` | + + +### Functions + + +| [foo](test/kotlin/foo) | `fun <T> any_array<T>.foo(predicate: (T) -> Boolean): Boolean` + +Returns true if foo. + + | + diff --git a/test/data/format/summarizeSignaturesProperty.kt b/test/data/format/summarizeSignaturesProperty.kt new file mode 100644 index 00000000..fbbdd328 --- /dev/null +++ b/test/data/format/summarizeSignaturesProperty.kt @@ -0,0 +1,20 @@ +package kotlin + +class Array<T> +class IntArray +class CharArray + +/** + * Returns true if foo. + */ +val IntArray.foo: Int = 0 + +/** + * Returns true if foo. + */ +val CharArray.foo: Int = 0 + +/** + * Returns true if foo. + */ +val <T> Array<T>.foo: Int = 0 diff --git a/test/data/format/summarizeSignaturesProperty.md b/test/data/format/summarizeSignaturesProperty.md new file mode 100644 index 00000000..9646b0f1 --- /dev/null +++ b/test/data/format/summarizeSignaturesProperty.md @@ -0,0 +1,23 @@ +[test](test/index) / [kotlin](test/kotlin/index) + + +## Package kotlin + + +### Types + + +| [Array](test/kotlin/-array/index) | `class Array<T>` | +| [CharArray](test/kotlin/-char-array/index) | `class CharArray` | +| [IntArray](test/kotlin/-int-array/index) | `class IntArray` | + + +### Properties + + +| [foo](test/kotlin/foo) | `val <T> any_array<T>.foo: Int` + +Returns true if foo. + + | + diff --git a/test/data/format/tripleBackticks.html b/test/data/format/tripleBackticks.html index 76b5f9e1..13954985 100644 --- a/test/data/format/tripleBackticks.html +++ b/test/data/format/tripleBackticks.html @@ -8,7 +8,6 @@ <h1>f</h1> <code><span class="keyword">fun </span><span class="identifier">f</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/> <p>Description</p> -<h3>Description</h3> <pre><code>code sample</code></pre><br/> <br/> <br/> diff --git a/test/data/format/typeParameterBounds.md b/test/data/format/typeParameterBounds.md index 3962f911..fe597878 100644 --- a/test/data/format/typeParameterBounds.md +++ b/test/data/format/typeParameterBounds.md @@ -3,7 +3,7 @@ # generic -`public fun <T : R, R> generic(): Unit` +`fun <T : R, R> generic(): Unit` generic function diff --git a/test/data/format/typeProjectionVariance.md b/test/data/format/typeProjectionVariance.md index 9812ca3f..7aa34593 100644 --- a/test/data/format/typeProjectionVariance.md +++ b/test/data/format/typeProjectionVariance.md @@ -1,8 +1,8 @@ -[test](test/index) / [Array](test/-array/index) +[test](test/index) / [kotlin.Array](test/kotlin.-array/index) -### Extensions for Array +### Extensions for kotlin.Array -| [foo](test/-array/foo) | `fun <T> Array<out T>.foo(): Unit` | +| [foo](test/kotlin.-array/foo) | `fun <T> Array<out T>.foo(): Unit` | diff --git a/test/data/functions/annotatedFunction.kt b/test/data/functions/annotatedFunction.kt index 11c19672..f7abbf6c 100644 --- a/test/data/functions/annotatedFunction.kt +++ b/test/data/functions/annotatedFunction.kt @@ -1,2 +1,2 @@ -inline fun f() { +@Strictfp fun f() { } diff --git a/test/data/functions/annotatedFunctionWithAnnotationParameters.kt b/test/data/functions/annotatedFunctionWithAnnotationParameters.kt index ee5b524a..e559713a 100644 --- a/test/data/functions/annotatedFunctionWithAnnotationParameters.kt +++ b/test/data/functions/annotatedFunctionWithAnnotationParameters.kt @@ -1 +1,7 @@ -inlineOptions(InlineOption.LOCAL_CONTINUE_AND_BREAK) fun f() {} +@Target(AnnotationTarget.VALUE_PARAMETER) +@Retention(AnnotationRetention.SOURCE) +@MustBeDocumented +public annotation class Fancy(val size: Int) + + +@Fancy(1) fun f() {} diff --git a/test/data/functions/functionWithAnnotatedParam.kt b/test/data/functions/functionWithAnnotatedParam.kt index 640bec83..f858e671 100644 --- a/test/data/functions/functionWithAnnotatedParam.kt +++ b/test/data/functions/functionWithAnnotatedParam.kt @@ -1,2 +1,7 @@ -fun function(noinline notInlined: () -> Unit) { +@Target(AnnotationTarget.VALUE_PARAMETER) +@Retention(AnnotationRetention.SOURCE) +@MustBeDocumented +public annotation class Fancy + +fun function(@Fancy notInlined: () -> Unit) { } diff --git a/test/data/functions/functionWithNoinlineParam.kt b/test/data/functions/functionWithNoinlineParam.kt new file mode 100644 index 00000000..640bec83 --- /dev/null +++ b/test/data/functions/functionWithNoinlineParam.kt @@ -0,0 +1,2 @@ +fun function(noinline notInlined: () -> Unit) { +} diff --git a/test/data/functions/functionWithNotDocumentedAnnotation.kt b/test/data/functions/functionWithNotDocumentedAnnotation.kt new file mode 100644 index 00000000..3c7e2ff9 --- /dev/null +++ b/test/data/functions/functionWithNotDocumentedAnnotation.kt @@ -0,0 +1,2 @@ +@Suppress("FOO") fun f() { +} diff --git a/test/data/functions/inlineFunction.kt b/test/data/functions/inlineFunction.kt new file mode 100644 index 00000000..11c19672 --- /dev/null +++ b/test/data/functions/inlineFunction.kt @@ -0,0 +1,2 @@ +inline fun f() { +} diff --git a/test/data/packagedocs/stdlib.md b/test/data/packagedocs/stdlib.md new file mode 100644 index 00000000..5d7432b5 --- /dev/null +++ b/test/data/packagedocs/stdlib.md @@ -0,0 +1,11 @@ +# Module stdlib + +## Kotlin Standard Library + +The Kotlin standard library is a set of functions and types implementing idiomatic patterns when working with collections, +text and files. + +# Package kotlin + +Core functions and types + diff --git a/test/data/properties/annotatedProperty.kt b/test/data/properties/annotatedProperty.kt index f70c28b4..8990af29 100644 --- a/test/data/properties/annotatedProperty.kt +++ b/test/data/properties/annotatedProperty.kt @@ -1 +1 @@ -inline val property = "test"
\ No newline at end of file +@Volatile var property = "test"
\ No newline at end of file |