aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata/format')
-rw-r--r--core/testdata/format/accessor.kt5
-rw-r--r--core/testdata/format/accessor.md18
-rw-r--r--core/testdata/format/annotatedTypeParameter.kt2
-rw-r--r--core/testdata/format/annotatedTypeParameter.md8
-rw-r--r--core/testdata/format/annotationClass.kt1
-rw-r--r--core/testdata/format/annotationClass.md14
-rw-r--r--core/testdata/format/annotationParams.kt1
-rw-r--r--core/testdata/format/annotationParams.md8
-rw-r--r--core/testdata/format/annotations.kt6
-rw-r--r--core/testdata/format/annotations.md26
-rw-r--r--core/testdata/format/bracket.html14
-rw-r--r--core/testdata/format/bracket.kt4
-rw-r--r--core/testdata/format/brokenLink.html14
-rw-r--r--core/testdata/format/brokenLink.kt4
-rw-r--r--core/testdata/format/classWithCompanionObject.html46
-rw-r--r--core/testdata/format/classWithCompanionObject.kt7
-rw-r--r--core/testdata/format/classWithCompanionObject.md26
-rw-r--r--core/testdata/format/codeSpan.html14
-rw-r--r--core/testdata/format/codeSpan.kt4
-rw-r--r--core/testdata/format/companionObjectExtension.kt10
-rw-r--r--core/testdata/format/companionObjectExtension.md23
-rw-r--r--core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html37
-rw-r--r--core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt6
-rw-r--r--core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java6
-rw-r--r--core/testdata/format/deprecated.class.html41
-rw-r--r--core/testdata/format/deprecated.kt5
-rw-r--r--core/testdata/format/deprecated.package.html43
-rw-r--r--core/testdata/format/emptyDescription.kt5
-rw-r--r--core/testdata/format/emptyDescription.md11
-rw-r--r--core/testdata/format/entity.html26
-rw-r--r--core/testdata/format/entity.kt4
-rw-r--r--core/testdata/format/enumClass.kt4
-rw-r--r--core/testdata/format/enumClass.md15
-rw-r--r--core/testdata/format/enumClass.value.md8
-rw-r--r--core/testdata/format/extensionFunctionParameter.kt1
-rw-r--r--core/testdata/format/extensionFunctionParameter.md8
-rw-r--r--core/testdata/format/extensions.class.md16
-rw-r--r--core/testdata/format/extensions.kt19
-rw-r--r--core/testdata/format/extensions.package.md11
-rw-r--r--core/testdata/format/functionWithDefaultParameter.kt1
-rw-r--r--core/testdata/format/functionWithDefaultParameter.md8
-rw-r--r--core/testdata/format/htmlEscaping.html14
-rw-r--r--core/testdata/format/htmlEscaping.kt4
-rw-r--r--core/testdata/format/inheritedExtensions.kt11
-rw-r--r--core/testdata/format/inheritedExtensions.md21
-rw-r--r--core/testdata/format/inheritedMembers.kt12
-rw-r--r--core/testdata/format/inheritedMembers.md38
-rw-r--r--core/testdata/format/javaCodeInParam.java5
-rw-r--r--core/testdata/format/javaCodeInParam.md21
-rw-r--r--core/testdata/format/javaCodeLiteralTags.java6
-rw-r--r--core/testdata/format/javaCodeLiteralTags.md23
-rw-r--r--core/testdata/format/javaDeprecated.html14
-rw-r--r--core/testdata/format/javaDeprecated.java5
-rw-r--r--core/testdata/format/javaLinkTag.html36
-rw-r--r--core/testdata/format/javaLinkTag.java6
-rw-r--r--core/testdata/format/javaLinkTagWithLabel.html36
-rw-r--r--core/testdata/format/javaLinkTagWithLabel.java6
-rw-r--r--core/testdata/format/javaSeeTag.html38
-rw-r--r--core/testdata/format/javaSeeTag.java6
-rw-r--r--core/testdata/format/javaSpaceInAuthor.java5
-rw-r--r--core/testdata/format/javaSpaceInAuthor.md19
-rw-r--r--core/testdata/format/javaSupertype.html35
-rw-r--r--core/testdata/format/javaSupertype.java8
-rw-r--r--core/testdata/format/javadocHtml.java14
-rw-r--r--core/testdata/format/javadocHtml.md27
-rw-r--r--core/testdata/format/javadocOrderedList.java8
-rw-r--r--core/testdata/format/javadocOrderedList.md20
-rw-r--r--core/testdata/format/linkWithLabel.html37
-rw-r--r--core/testdata/format/linkWithLabel.kt6
-rw-r--r--core/testdata/format/nullability.kt5
-rw-r--r--core/testdata/format/nullability.md20
-rw-r--r--core/testdata/format/operatorOverloading.kt3
-rw-r--r--core/testdata/format/operatorOverloading.md8
-rw-r--r--core/testdata/format/orderedList.html30
-rw-r--r--core/testdata/format/orderedList.kt8
-rw-r--r--core/testdata/format/overloads.html23
-rw-r--r--core/testdata/format/overloads.kt5
-rw-r--r--core/testdata/format/overloadsWithDescription.html21
-rw-r--r--core/testdata/format/overloadsWithDescription.kt15
-rw-r--r--core/testdata/format/overloadsWithDifferentDescriptions.html30
-rw-r--r--core/testdata/format/overloadsWithDifferentDescriptions.kt15
-rw-r--r--core/testdata/format/overridingFunction.kt7
-rw-r--r--core/testdata/format/overridingFunction.md9
-rw-r--r--core/testdata/format/paramTag.kt6
-rw-r--r--core/testdata/format/paramTag.md14
-rw-r--r--core/testdata/format/parameterAnchor.html17
-rw-r--r--core/testdata/format/parameterAnchor.kt6
-rw-r--r--core/testdata/format/parenthesis.html14
-rw-r--r--core/testdata/format/parenthesis.kt4
-rw-r--r--core/testdata/format/propertyVar.kt1
-rw-r--r--core/testdata/format/propertyVar.md8
-rw-r--r--core/testdata/format/reifiedTypeParameter.kt3
-rw-r--r--core/testdata/format/reifiedTypeParameter.md8
-rw-r--r--core/testdata/format/see.html28
-rw-r--r--core/testdata/format/see.kt12
-rw-r--r--core/testdata/format/starProjection.kt3
-rw-r--r--core/testdata/format/starProjection.md8
-rw-r--r--core/testdata/format/summarizeSignatures.kt20
-rw-r--r--core/testdata/format/summarizeSignatures.md23
-rw-r--r--core/testdata/format/summarizeSignaturesProperty.kt20
-rw-r--r--core/testdata/format/summarizeSignaturesProperty.md23
-rw-r--r--core/testdata/format/throwsTag.kt5
-rw-r--r--core/testdata/format/throwsTag.md13
-rw-r--r--core/testdata/format/tripleBackticks.html16
-rw-r--r--core/testdata/format/tripleBackticks.kt7
-rw-r--r--core/testdata/format/typeLink.html24
-rw-r--r--core/testdata/format/typeLink.kt5
-rw-r--r--core/testdata/format/typeParameterBounds.kt6
-rw-r--r--core/testdata/format/typeParameterBounds.md11
-rw-r--r--core/testdata/format/typeParameterVariance.kt2
-rw-r--r--core/testdata/format/typeParameterVariance.md14
-rw-r--r--core/testdata/format/typeProjectionVariance.kt1
-rw-r--r--core/testdata/format/typeProjectionVariance.md8
-rw-r--r--core/testdata/format/varargsFunction.kt1
-rw-r--r--core/testdata/format/varargsFunction.md8
115 files changed, 1549 insertions, 0 deletions
diff --git a/core/testdata/format/accessor.kt b/core/testdata/format/accessor.kt
new file mode 100644
index 00000000..5a4d1742
--- /dev/null
+++ b/core/testdata/format/accessor.kt
@@ -0,0 +1,5 @@
+class C() {
+ var x: String
+ /** The getter returns an empty string. */ get() = ""
+ /** The setter does nothing. */ set(value) { }
+}
diff --git a/core/testdata/format/accessor.md b/core/testdata/format/accessor.md
new file mode 100644
index 00000000..8279f452
--- /dev/null
+++ b/core/testdata/format/accessor.md
@@ -0,0 +1,18 @@
+[test](test/index) / [C](test/-c/index) / [x](test/-c/x)
+
+
+# x
+
+`var x: String`
+**Getter**
+
+The getter returns an empty string.
+
+
+**Setter**
+
+The setter does nothing.
+
+
+
+
diff --git a/core/testdata/format/annotatedTypeParameter.kt b/core/testdata/format/annotatedTypeParameter.kt
new file mode 100644
index 00000000..cc3bfc1a
--- /dev/null
+++ b/core/testdata/format/annotatedTypeParameter.kt
@@ -0,0 +1,2 @@
+public fun <E> containsAll(elements: Collection<@UnsafeVariance E>): @UnsafeVariance E {
+}
diff --git a/core/testdata/format/annotatedTypeParameter.md b/core/testdata/format/annotatedTypeParameter.md
new file mode 100644
index 00000000..7d26a162
--- /dev/null
+++ b/core/testdata/format/annotatedTypeParameter.md
@@ -0,0 +1,8 @@
+[test](test/index) / [containsAll](test/contains-all)
+
+
+# containsAll
+
+`fun &lt;E&gt; containsAll(elements:&nbsp;Collection&lt;@UnsafeVariance E&gt;): @UnsafeVariance E`
+
+
diff --git a/core/testdata/format/annotationClass.kt b/core/testdata/format/annotationClass.kt
new file mode 100644
index 00000000..89d494fb
--- /dev/null
+++ b/core/testdata/format/annotationClass.kt
@@ -0,0 +1 @@
+annotation class fancy
diff --git a/core/testdata/format/annotationClass.md b/core/testdata/format/annotationClass.md
new file mode 100644
index 00000000..03548aa3
--- /dev/null
+++ b/core/testdata/format/annotationClass.md
@@ -0,0 +1,14 @@
+[test](test/index) / [fancy](test/fancy/index)
+
+
+# fancy
+
+`annotation class fancy`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/fancy/-init-) | `fancy()` |
+
diff --git a/core/testdata/format/annotationParams.kt b/core/testdata/format/annotationParams.kt
new file mode 100644
index 00000000..f259a740
--- /dev/null
+++ b/core/testdata/format/annotationParams.kt
@@ -0,0 +1 @@
+@JvmName("FFF") fun f() {}
diff --git a/core/testdata/format/annotationParams.md b/core/testdata/format/annotationParams.md
new file mode 100644
index 00000000..8cdd6e96
--- /dev/null
+++ b/core/testdata/format/annotationParams.md
@@ -0,0 +1,8 @@
+[test](test/index) / [f](test/f)
+
+
+# f
+
+`@JvmName("FFF") fun f(): Unit`
+
+
diff --git a/core/testdata/format/annotations.kt b/core/testdata/format/annotations.kt
new file mode 100644
index 00000000..57f76249
--- /dev/null
+++ b/core/testdata/format/annotations.kt
@@ -0,0 +1,6 @@
+data class Foo {
+ inline fun bar(noinline notInlined: () -> Unit) {
+ }
+
+ inline val x: Int
+}
diff --git a/core/testdata/format/annotations.md b/core/testdata/format/annotations.md
new file mode 100644
index 00000000..b898d55c
--- /dev/null
+++ b/core/testdata/format/annotations.md
@@ -0,0 +1,26 @@
+[test](test/index) / [Foo](test/-foo/index)
+
+
+# Foo
+
+`data class Foo`
+
+
+
+### Constructors
+
+
+| [&lt;init&gt;](test/-foo/-init-) | `Foo()` |
+
+
+### Properties
+
+
+| [x](test/-foo/x) | `val x: Int` |
+
+
+### Functions
+
+
+| [bar](test/-foo/bar) | `fun bar(notInlined:&nbsp;()&nbsp;-&gt;&nbsp;Unit): Unit` |
+
diff --git a/core/testdata/format/bracket.html b/core/testdata/format/bracket.html
new file mode 100644
index 00000000..5630073d
--- /dev/null
+++ b/core/testdata/format/bracket.html
@@ -0,0 +1,14 @@
+<HTML>
+<HEAD>
+<title>test / foo</title>
+</HEAD>
+<BODY>
+<a href="test/index">test</a>&nbsp;/&nbsp;<a href="test/foo">foo</a><br/>
+<br/>
+<h1>foo</h1>
+<code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code><br/>
+<p>bar[]</p>
+<br/>
+<br/>
+</BODY>
+</HTML>
diff --git a/core/testdata/format/bracket.kt b/core/testdata/format/bracket.kt
new file mode 100644
index 00000000..d41b0073
--- /dev/null
+++ b/core/testdata/format/bracket.kt
@@ -