diff options
Diffstat (limited to 'core/testdata')
23 files changed, 261 insertions, 13 deletions
diff --git a/core/testdata/format/annotationClass.package.md b/core/testdata/format/annotationClass.package.md new file mode 100644 index 00000000..f7c8405d --- /dev/null +++ b/core/testdata/format/annotationClass.package.md @@ -0,0 +1,11 @@ +[test](test/index) + + +## Package <root> + + +### Annotations + + +| [fancy](test/fancy/index) | `annotation class fancy` | + diff --git a/core/testdata/format/arrayAverage.kt b/core/testdata/format/arrayAverage.kt new file mode 100644 index 00000000..1f9e12db --- /dev/null +++ b/core/testdata/format/arrayAverage.kt @@ -0,0 +1,8 @@ +class XArray<T> + +fun XArray<out Byte>.average(): Double = 0.0 +fun XArray<out Double>.average(): Double = 0.0 +fun XArray<out Float>.average(): Double = 0.0 +fun XArray<out Int>.average(): Double = 0.0 +fun XArray<out Long>.average(): Double = 0.0 +fun XArray<out Short>.average(): Double = 0.0 diff --git a/core/testdata/format/arrayAverage.md b/core/testdata/format/arrayAverage.md new file mode 100644 index 00000000..9ffa3650 --- /dev/null +++ b/core/testdata/format/arrayAverage.md @@ -0,0 +1,25 @@ +[test](test/index) / [XArray](test/-x-array/index) + + +# XArray + +`class XArray<T>` + + + +### Constructors + + +| [<init>](test/-x-array/-init-) | `XArray()` | + + +### Extension Functions + + +| [average](test/average) | `fun [XArray](test/-x-array/index)<out Byte>.average(): Double` +`fun [XArray](test/-x-array/index)<out Double>.average(): Double` +`fun [XArray](test/-x-array/index)<out Float>.average(): Double` +`fun [XArray](test/-x-array/index)<out Int>.average(): Double` +`fun [XArray](test/-x-array/index)<out Long>.average(): Double` +`fun [XArray](test/-x-array/index)<out Short>.average(): Double` | + diff --git a/core/testdata/format/deprecated.class.html b/core/testdata/format/deprecated.class.html index 69da63a1..b9939cd8 100644 --- a/core/testdata/format/deprecated.class.html +++ b/core/testdata/format/deprecated.class.html @@ -26,16 +26,5 @@ <br/> <br/> <br/> -<h3>Constructors</h3> -<table> -<tbody> -<tr> -<td> -<a href="test/-c/-init-"><init></a></td> -<td> -<code><span class="identifier">C</span><span class="symbol">(</span><span class="symbol">)</span></code></td> -</tr> -</tbody> -</table> </BODY> </HTML> diff --git a/core/testdata/format/deprecated.package.html b/core/testdata/format/deprecated.package.html index dd80471c..7658b435 100644 --- a/core/testdata/format/deprecated.package.html +++ b/core/testdata/format/deprecated.package.html @@ -5,7 +5,7 @@ <BODY> <a href="test/index">test</a><br/> <br/> -<h2>Package </h2> +<h2>Package <root></h2> <h3>Types</h3> <table> <tbody> diff --git a/core/testdata/format/exceptionClass.kt b/core/testdata/format/exceptionClass.kt new file mode 100644 index 00000000..d005bd89 --- /dev/null +++ b/core/testdata/format/exceptionClass.kt @@ -0,0 +1 @@ +class MyException : Exception diff --git a/core/testdata/format/exceptionClass.md b/core/testdata/format/exceptionClass.md new file mode 100644 index 00000000..b3464d6f --- /dev/null +++ b/core/testdata/format/exceptionClass.md @@ -0,0 +1,14 @@ +[test](test/index) / [MyException](test/-my-exception/index) + + +# MyException + +`class MyException : [Exception](http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html)` + + + +### Constructors + + +| [<init>](test/-my-exception/-init-) | `MyException()` | + diff --git a/core/testdata/format/exceptionClass.package.md b/core/testdata/format/exceptionClass.package.md new file mode 100644 index 00000000..fa220fe7 --- /dev/null +++ b/core/testdata/format/exceptionClass.package.md @@ -0,0 +1,11 @@ +[test](test/index) + + +## Package <root> + + +### Exceptions + + +| [MyException](test/-my-exception/index) | `class MyException : [Exception](http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html)` | + diff --git a/core/testdata/format/inapplicableExtensionFunctions.kt b/core/testdata/format/inapplicableExtensionFunctions.kt new file mode 100644 index 00000000..d2c65b46 --- /dev/null +++ b/core/testdata/format/inapplicableExtensionFunctions.kt @@ -0,0 +1,11 @@ +open class Foo<T> { +} + +class Bar : Foo<Char>() { +} + +fun Foo<Int>.shazam() { +} + +fun Bar.xyzzy() { +} diff --git a/core/testdata/format/inapplicableExtensionFunctions.md b/core/testdata/format/inapplicableExtensionFunctions.md new file mode 100644 index 00000000..8460cf2f --- /dev/null +++ b/core/testdata/format/inapplicableExtensionFunctions.md @@ -0,0 +1,20 @@ +[test](test/index) / [Bar](test/-bar/index) + + +# Bar + +`class Bar : [Foo](test/-foo/index)<Char>` + + + +### Constructors + + +| [<init>](test/-bar/-init-) | `Bar()` | + + +### Extension Functions + + +| [xyzzy](test/xyzzy) | `fun [Bar](test/-bar/index).xyzzy(): Unit` | + diff --git a/core/testdata/format/inheritedCompanionObjectProperties.kt b/core/testdata/format/inheritedCompanionObjectProperties.kt new file mode 100644 index 00000000..74a3749c --- /dev/null +++ b/core/testdata/format/inheritedCompanionObjectProperties.kt @@ -0,0 +1,18 @@ +open class A { + fun foo() { + } +} + +open class B { + fun bar() { + } +} + +class C : A { + fun xyzzy() { + } + + companion object : B () { + fun shazam() + } +} diff --git a/core/testdata/format/inheritedCompanionObjectProperties.md b/core/testdata/format/inheritedCompanionObjectProperties.md new file mode 100644 index 00000000..9ec24edb --- /dev/null +++ b/core/testdata/format/inheritedCompanionObjectProperties.md @@ -0,0 +1,38 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`class C : [A](test/-a/index)` + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` | + + +### Functions + + +| [xyzzy](test/-c/xyzzy) | `fun xyzzy(): Unit` | + + +### Inherited Functions + + +| [foo](test/-a/foo) | `fun foo(): Unit` | + + +### Companion Object Functions + + +| [shazam](test/-c/shazam) | `fun shazam(): Unit` | + + +### Inherited Companion Object Functions + + +| [bar](test/-b/bar) | `fun bar(): Unit` | + diff --git a/core/testdata/format/jdkLinks.kt b/core/testdata/format/jdkLinks.kt new file mode 100644 index 00000000..d5d719b0 --- /dev/null +++ b/core/testdata/format/jdkLinks.kt @@ -0,0 +1,5 @@ +/** + * This is a [ClassLoader] and I can get its [ClassLoader.getResource] + */ +class C : ClassLoader { +} diff --git a/core/testdata/format/jdkLinks.md b/core/testdata/format/jdkLinks.md new file mode 100644 index 00000000..4f0344b5 --- /dev/null +++ b/core/testdata/format/jdkLinks.md @@ -0,0 +1,20 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`class C : [ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html)` + +This is a [ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String)) + + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` +This is a [ClassLoader](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](http://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String)) + + | + diff --git a/core/testdata/format/multipleTypeParameterConstraints.kt b/core/testdata/format/multipleTypeParameterConstraints.kt new file mode 100644 index 00000000..8fd62e11 --- /dev/null +++ b/core/testdata/format/multipleTypeParameterConstraints.kt @@ -0,0 +1,2 @@ +fun f<T> where T: Appendable, T: CharSequence { +} diff --git a/core/testdata/format/multipleTypeParameterConstraints.md b/core/testdata/format/multipleTypeParameterConstraints.md new file mode 100644 index 00000000..537b127a --- /dev/null +++ b/core/testdata/format/multipleTypeParameterConstraints.md @@ -0,0 +1,8 @@ +[test](test/index) / [f](test/f) + + +# f + +`fun <T> f(): Unit where T : [Appendable](http://docs.oracle.com/javase/6/docs/api/java/lang/Appendable.html), T : CharSequence` + + diff --git a/core/testdata/format/overloads.html b/core/testdata/format/overloads.html index 752f3989..896d79a9 100644 --- a/core/testdata/format/overloads.html +++ b/core/testdata/format/overloads.html @@ -5,7 +5,7 @@ <BODY> <a href="test/index">test</a><br/> <br/> -<h2>Package </h2> +<h2>Package <root></h2> <h3>Functions</h3> <table> <tbody> diff --git a/core/testdata/format/paramTag.md b/core/testdata/format/paramTag.md index 882083fe..20d8faac 100644 --- a/core/testdata/format/paramTag.md +++ b/core/testdata/format/paramTag.md @@ -8,6 +8,7 @@ ### Parameters `x` - A string + `y` - A number with a really long description that spans multiple lines and goes on and on and is very interesting to read diff --git a/core/testdata/format/receiverParameterTypeBound.kt b/core/testdata/format/receiverParameterTypeBound.kt new file mode 100644 index 00000000..2b5f6f17 --- /dev/null +++ b/core/testdata/format/receiverParameterTypeBound.kt @@ -0,0 +1,5 @@ +open class Foo { +} + +fun <T : Foo> T.xyzzy() { +} diff --git a/core/testdata/format/receiverParameterTypeBound.md b/core/testdata/format/receiverParameterTypeBound.md new file mode 100644 index 00000000..872158ac --- /dev/null +++ b/core/testdata/format/receiverParameterTypeBound.md @@ -0,0 +1,20 @@ +[test](test/index) / [Foo](test/-foo/index) + + +# Foo + +`open class Foo` + + + +### Constructors + + +| [<init>](test/-foo/-init-) | `Foo()` | + + +### Extension Functions + + +| [xyzzy](test/xyzzy) | `fun <T : [Foo](test/-foo/index)> T.xyzzy(): Unit` | + diff --git a/core/testdata/format/shadowedExtensionFunctions.kt b/core/testdata/format/shadowedExtensionFunctions.kt new file mode 100644 index 00000000..64df1ecb --- /dev/null +++ b/core/testdata/format/shadowedExtensionFunctions.kt @@ -0,0 +1,18 @@ +open class Foo { +} + +class Bar : Foo() { +} + +fun Foo.xyzzy() { +} + +fun Foo.shazam() { + +} + +fun Bar.xyzzy() { +} + +fun Bar.shazam(i: Int) { +} diff --git a/core/testdata/format/shadowedExtensionFunctions.md b/core/testdata/format/shadowedExtensionFunctions.md new file mode 100644 index 00000000..5218d299 --- /dev/null +++ b/core/testdata/format/shadowedExtensionFunctions.md @@ -0,0 +1,22 @@ +[test](test/index) / [Bar](test/-bar/index) + + +# Bar + +`class Bar : [Foo](test/-foo/index)` + + + +### Constructors + + +| [<init>](test/-bar/-init-) | `Bar()` | + + +### Extension Functions + + +| [shazam](test/shazam) | `fun [Bar](test/-bar/index).shazam(i: Int): Unit` +`fun [Foo](test/-foo/index).shazam(): Unit` | +| [xyzzy](test/xyzzy) | `fun [Bar](test/-bar/index).xyzzy(): Unit` | + diff --git a/core/testdata/format/throwsTag.md b/core/testdata/format/throwsTag.md index d0a4e610..21225297 100644 --- a/core/testdata/format/throwsTag.md +++ b/core/testdata/format/throwsTag.md @@ -8,6 +8,7 @@ ### Exceptions `IllegalArgumentException` - on Mondays + `NullPointerException` - on Tuesdays |