From 39631054c58df5841ea268b7002b820ec55f6e0a Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 3 Dec 2015 16:22:11 +0100 Subject: restructure Dokka build to use Gradle for everything except for the Maven plugin --- core/testdata/classes/annotatedClass.kt | 1 + .../annotatedClassWithAnnotationParameters.kt | 1 + core/testdata/classes/classWithCompanionObject.kt | 7 + core/testdata/classes/classWithConstructor.kt | 1 + core/testdata/classes/classWithFunction.kt | 4 + core/testdata/classes/classWithProperty.kt | 3 + core/testdata/classes/companionObjectExtension.kt | 10 + core/testdata/classes/dataClass.kt | 1 + core/testdata/classes/emptyClass.kt | 3 + core/testdata/classes/emptyObject.kt | 3 + core/testdata/classes/genericClass.kt | 3 + core/testdata/classes/indirectOverride.kt | 9 + core/testdata/classes/innerClass.kt | 5 + core/testdata/classes/javaAnnotationClass.kt | 5 + core/testdata/classes/notOpenClass.kt | 7 + core/testdata/classes/sealedClass.kt | 1 + core/testdata/classes/secondaryConstructor.kt | 5 + core/testdata/comments/directive.kt | 35 + core/testdata/comments/emptyDoc.kt | 1 + core/testdata/comments/emptyDocButComment.kt | 2 + core/testdata/comments/emptySection.kt | 6 + core/testdata/comments/multilineDoc.kt | 7 + core/testdata/comments/multilineDocWithComment.kt | 8 + core/testdata/comments/multilineSection.kt | 7 + core/testdata/comments/oneLineDoc.kt | 2 + core/testdata/comments/oneLineDocWithComment.kt | 3 + core/testdata/comments/oneLineDocWithEmptyLine.kt | 3 + core/testdata/comments/section1.kt | 5 + core/testdata/comments/section2.kt | 6 + core/testdata/format/accessor.kt | 5 + core/testdata/format/accessor.md | 18 + core/testdata/format/annotatedTypeParameter.kt | 2 + core/testdata/format/annotatedTypeParameter.md | 8 + core/testdata/format/annotationClass.kt | 1 + core/testdata/format/annotationClass.md | 14 + core/testdata/format/annotationParams.kt | 1 + core/testdata/format/annotationParams.md | 8 + core/testdata/format/annotations.kt | 6 + core/testdata/format/annotations.md | 26 + core/testdata/format/bracket.html | 14 + core/testdata/format/bracket.kt | 4 + core/testdata/format/brokenLink.html | 14 + core/testdata/format/brokenLink.kt | 4 + core/testdata/format/classWithCompanionObject.html | 46 + core/testdata/format/classWithCompanionObject.kt | 7 + core/testdata/format/classWithCompanionObject.md | 26 + core/testdata/format/codeSpan.html | 14 + core/testdata/format/codeSpan.kt | 4 + core/testdata/format/companionObjectExtension.kt | 10 + core/testdata/format/companionObjectExtension.md | 23 + .../crossLanguage/kotlinExtendsJava/Bar.html | 37 + .../format/crossLanguage/kotlinExtendsJava/Bar.kt | 6 + .../crossLanguage/kotlinExtendsJava/test/Foo.java | 6 + core/testdata/format/deprecated.class.html | 41 + core/testdata/format/deprecated.kt | 5 + core/testdata/format/deprecated.package.html | 43 + core/testdata/format/emptyDescription.kt | 5 + core/testdata/format/emptyDescription.md | 11 + core/testdata/format/entity.html | 26 + core/testdata/format/entity.kt | 4 + core/testdata/format/enumClass.kt | 4 + core/testdata/format/enumClass.md | 15 + core/testdata/format/enumClass.value.md | 8 + core/testdata/format/extensionFunctionParameter.kt | 1 + core/testdata/format/extensionFunctionParameter.md | 8 + core/testdata/format/extensions.class.md | 16 + core/testdata/format/extensions.kt | 19 + core/testdata/format/extensions.package.md | 11 + .../format/functionWithDefaultParameter.kt | 1 + .../format/functionWithDefaultParameter.md | 8 + core/testdata/format/htmlEscaping.html | 14 + core/testdata/format/htmlEscaping.kt | 4 + core/testdata/format/inheritedExtensions.kt | 11 + core/testdata/format/inheritedExtensions.md | 21 + core/testdata/format/inheritedMembers.kt | 12 + core/testdata/format/inheritedMembers.md | 38 + core/testdata/format/javaCodeInParam.java | 5 + core/testdata/format/javaCodeInParam.md | 21 + core/testdata/format/javaCodeLiteralTags.java | 6 + core/testdata/format/javaCodeLiteralTags.md | 23 + core/testdata/format/javaDeprecated.html | 14 + core/testdata/format/javaDeprecated.java | 5 + core/testdata/format/javaLinkTag.html | 36 + core/testdata/format/javaLinkTag.java | 6 + core/testdata/format/javaLinkTagWithLabel.html | 36 + core/testdata/format/javaLinkTagWithLabel.java | 6 + core/testdata/format/javaSeeTag.html | 38 + core/testdata/format/javaSeeTag.java | 6 + core/testdata/format/javaSpaceInAuthor.java | 5 + core/testdata/format/javaSpaceInAuthor.md | 19 + core/testdata/format/javaSupertype.html | 35 + core/testdata/format/javaSupertype.java | 8 + core/testdata/format/javadocHtml.java | 14 + core/testdata/format/javadocHtml.md | 27 + core/testdata/format/javadocOrderedList.java | 8 + core/testdata/format/javadocOrderedList.md | 20 + core/testdata/format/linkWithLabel.html | 37 + core/testdata/format/linkWithLabel.kt | 6 + core/testdata/format/nullability.kt | 5 + core/testdata/format/nullability.md | 20 + core/testdata/format/operatorOverloading.kt | 3 + core/testdata/format/operatorOverloading.md | 8 + core/testdata/format/orderedList.html | 30 + core/testdata/format/orderedList.kt | 8 + core/testdata/format/overloads.html | 23 + core/testdata/format/overloads.kt | 5 + core/testdata/format/overloadsWithDescription.html | 21 + core/testdata/format/overloadsWithDescription.kt | 15 + .../format/overloadsWithDifferentDescriptions.html | 30 + .../format/overloadsWithDifferentDescriptions.kt | 15 + core/testdata/format/overridingFunction.kt | 7 + core/testdata/format/overridingFunction.md | 9 + core/testdata/format/paramTag.kt | 6 + core/testdata/format/paramTag.md | 14 + core/testdata/format/parameterAnchor.html | 17 + core/testdata/format/parameterAnchor.kt | 6 + core/testdata/format/parenthesis.html | 14 + core/testdata/format/parenthesis.kt | 4 + core/testdata/format/propertyVar.kt | 1 + core/testdata/format/propertyVar.md | 8 + core/testdata/format/reifiedTypeParameter.kt | 3 + core/testdata/format/reifiedTypeParameter.md | 8 + core/testdata/format/see.html | 28 + core/testdata/format/see.kt | 12 + core/testdata/format/starProjection.kt | 3 + core/testdata/format/starProjection.md | 8 + core/testdata/format/summarizeSignatures.kt | 20 + core/testdata/format/summarizeSignatures.md | 23 + .../testdata/format/summarizeSignaturesProperty.kt | 20 + .../testdata/format/summarizeSignaturesProperty.md | 23 + core/testdata/format/throwsTag.kt | 5 + core/testdata/format/throwsTag.md | 13 + core/testdata/format/tripleBackticks.html | 16 + core/testdata/format/tripleBackticks.kt | 7 + core/testdata/format/typeLink.html | 24 + core/testdata/format/typeLink.kt | 5 + core/testdata/format/typeParameterBounds.kt | 6 + core/testdata/format/typeParameterBounds.md | 11 + core/testdata/format/typeParameterVariance.kt | 2 + core/testdata/format/typeParameterVariance.md | 14 + core/testdata/format/typeProjectionVariance.kt | 1 + core/testdata/format/typeProjectionVariance.md | 8 + core/testdata/format/varargsFunction.kt | 1 + core/testdata/format/varargsFunction.md | 8 + core/testdata/functions/annotatedFunction.kt | 2 + .../annotatedFunctionWithAnnotationParameters.kt | 7 + core/testdata/functions/function.kt | 5 + .../functions/functionWithAnnotatedParam.kt | 7 + .../functions/functionWithDefaultParameter.kt | 1 + .../functions/functionWithNoinlineParam.kt | 2 + .../functionWithNotDocumentedAnnotation.kt | 2 + core/testdata/functions/functionWithParams.kt | 8 + core/testdata/functions/functionWithReceiver.kt | 11 + core/testdata/functions/genericFunction.kt | 5 + .../functions/genericFunctionWithConstraints.kt | 6 + core/testdata/functions/inlineFunction.kt | 2 + core/testdata/java/annotatedAnnotation.java | 6 + core/testdata/java/arrayType.java | 5 + core/testdata/java/constructors.java | 5 + core/testdata/java/deprecation.java | 6 + core/testdata/java/enumValues.java | 3 + core/testdata/java/field.java | 4 + core/testdata/java/inheritorLinks.java | 7 + core/testdata/java/innerClass.java | 4 + core/testdata/java/javaLangObject.java | 3 + core/testdata/java/member.java | 11 + core/testdata/java/memberWithModifiers.java | 12 + core/testdata/java/staticMethod.java | 4 + core/testdata/java/superClass.java | 2 + core/testdata/java/typeParameter.java | 3 + core/testdata/java/varargs.java | 3 + core/testdata/javadoc/obj.kt | 7 + core/testdata/javadoc/types.kt | 4 + core/testdata/links/linkToJDK.kt | 0 core/testdata/links/linkToMember.kt | 6 + core/testdata/links/linkToParam.kt | 5 + core/testdata/links/linkToQualifiedMember.kt | 6 + core/testdata/links/linkToSelf.kt | 6 + core/testdata/markdown/spec.txt | 6150 ++++++++++++++++++++ core/testdata/packagedocs/stdlib.md | 11 + core/testdata/packages/dottedNamePackage.kt | 1 + core/testdata/packages/rootPackage.kt | 0 core/testdata/packages/simpleNamePackage.kt | 1 + core/testdata/packages/simpleNamePackage2.kt | 1 + core/testdata/properties/annotatedProperty.kt | 1 + core/testdata/properties/propertyOverride.kt | 7 + core/testdata/properties/propertyWithReceiver.kt | 2 + core/testdata/properties/valueProperty.kt | 1 + .../testdata/properties/valuePropertyWithGetter.kt | 2 + core/testdata/properties/variableProperty.kt | 1 + .../properties/variablePropertyWithAccessors.kt | 4 + 191 files changed, 8055 insertions(+) create mode 100644 core/testdata/classes/annotatedClass.kt create mode 100644 core/testdata/classes/annotatedClassWithAnnotationParameters.kt create mode 100644 core/testdata/classes/classWithCompanionObject.kt create mode 100644 core/testdata/classes/classWithConstructor.kt create mode 100644 core/testdata/classes/classWithFunction.kt create mode 100644 core/testdata/classes/classWithProperty.kt create mode 100644 core/testdata/classes/companionObjectExtension.kt create mode 100644 core/testdata/classes/dataClass.kt create mode 100644 core/testdata/classes/emptyClass.kt create mode 100644 core/testdata/classes/emptyObject.kt create mode 100644 core/testdata/classes/genericClass.kt create mode 100644 core/testdata/classes/indirectOverride.kt create mode 100644 core/testdata/classes/innerClass.kt create mode 100644 core/testdata/classes/javaAnnotationClass.kt create mode 100644 core/testdata/classes/notOpenClass.kt create mode 100644 core/testdata/classes/sealedClass.kt create mode 100644 core/testdata/classes/secondaryConstructor.kt create mode 100644 core/testdata/comments/directive.kt create mode 100644 core/testdata/comments/emptyDoc.kt create mode 100644 core/testdata/comments/emptyDocButComment.kt create mode 100644 core/testdata/comments/emptySection.kt create mode 100644 core/testdata/comments/multilineDoc.kt create mode 100644 core/testdata/comments/multilineDocWithComment.kt create mode 100644 core/testdata/comments/multilineSection.kt create mode 100644 core/testdata/comments/oneLineDoc.kt create mode 100644 core/testdata/comments/oneLineDocWithComment.kt create mode 100644 core/testdata/comments/oneLineDocWithEmptyLine.kt create mode 100644 core/testdata/comments/section1.kt create mode 100644 core/testdata/comments/section2.kt create mode 100644 core/testdata/format/accessor.kt create mode 100644 core/testdata/format/accessor.md create mode 100644 core/testdata/format/annotatedTypeParameter.kt create mode 100644 core/testdata/format/annotatedTypeParameter.md create mode 100644 core/testdata/format/annotationClass.kt create mode 100644 core/testdata/format/annotationClass.md create mode 100644 core/testdata/format/annotationParams.kt create mode 100644 core/testdata/format/annotationParams.md create mode 100644 core/testdata/format/annotations.kt create mode 100644 core/testdata/format/annotations.md create mode 100644 core/testdata/format/bracket.html create mode 100644 core/testdata/format/bracket.kt create mode 100644 core/testdata/format/brokenLink.html create mode 100644 core/testdata/format/brokenLink.kt create mode 100644 core/testdata/format/classWithCompanionObject.html create mode 100644 core/testdata/format/classWithCompanionObject.kt create mode 100644 core/testdata/format/classWithCompanionObject.md create mode 100644 core/testdata/format/codeSpan.html create mode 100644 core/testdata/format/codeSpan.kt create mode 100644 core/testdata/format/companionObjectExtension.kt create mode 100644 core/testdata/format/companionObjectExtension.md create mode 100644 core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html create mode 100644 core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt create mode 100644 core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java create mode 100644 core/testdata/format/deprecated.class.html create mode 100644 core/testdata/format/deprecated.kt create mode 100644 core/testdata/format/deprecated.package.html create mode 100644 core/testdata/format/emptyDescription.kt create mode 100644 core/testdata/format/emptyDescription.md create mode 100644 core/testdata/format/entity.html create mode 100644 core/testdata/format/entity.kt create mode 100644 core/testdata/format/enumClass.kt create mode 100644 core/testdata/format/enumClass.md create mode 100644 core/testdata/format/enumClass.value.md create mode 100644 core/testdata/format/extensionFunctionParameter.kt create mode 100644 core/testdata/format/extensionFunctionParameter.md create mode 100644 core/testdata/format/extensions.class.md create mode 100644 core/testdata/format/extensions.kt create mode 100644 core/testdata/format/extensions.package.md create mode 100644 core/testdata/format/functionWithDefaultParameter.kt create mode 100644 core/testdata/format/functionWithDefaultParameter.md create mode 100644 core/testdata/format/htmlEscaping.html create mode 100644 core/testdata/format/htmlEscaping.kt create mode 100644 core/testdata/format/inheritedExtensions.kt create mode 100644 core/testdata/format/inheritedExtensions.md create mode 100644 core/testdata/format/inheritedMembers.kt create mode 100644 core/testdata/format/inheritedMembers.md create mode 100644 core/testdata/format/javaCodeInParam.java create mode 100644 core/testdata/format/javaCodeInParam.md create mode 100644 core/testdata/format/javaCodeLiteralTags.java create mode 100644 core/testdata/format/javaCodeLiteralTags.md create mode 100644 core/testdata/format/javaDeprecated.html create mode 100644 core/testdata/format/javaDeprecated.java create mode 100644 core/testdata/format/javaLinkTag.html create mode 100644 core/testdata/format/javaLinkTag.java create mode 100644 core/testdata/format/javaLinkTagWithLabel.html create mode 100644 core/testdata/format/javaLinkTagWithLabel.java create mode 100644 core/testdata/format/javaSeeTag.html create mode 100644 core/testdata/format/javaSeeTag.java create mode 100644 core/testdata/format/javaSpaceInAuthor.java create mode 100644 core/testdata/format/javaSpaceInAuthor.md create mode 100644 core/testdata/format/javaSupertype.html create mode 100644 core/testdata/format/javaSupertype.java create mode 100644 core/testdata/format/javadocHtml.java create mode 100644 core/testdata/format/javadocHtml.md create mode 100644 core/testdata/format/javadocOrderedList.java create mode 100644 core/testdata/format/javadocOrderedList.md create mode 100644 core/testdata/format/linkWithLabel.html create mode 100644 core/testdata/format/linkWithLabel.kt create mode 100644 core/testdata/format/nullability.kt create mode 100644 core/testdata/format/nullability.md create mode 100644 core/testdata/format/operatorOverloading.kt create mode 100644 core/testdata/format/operatorOverloading.md create mode 100644 core/testdata/format/orderedList.html create mode 100644 core/testdata/format/orderedList.kt create mode 100644 core/testdata/format/overloads.html create mode 100644 core/testdata/format/overloads.kt create mode 100644 core/testdata/format/overloadsWithDescription.html create mode 100644 core/testdata/format/overloadsWithDescription.kt create mode 100644 core/testdata/format/overloadsWithDifferentDescriptions.html create mode 100644 core/testdata/format/overloadsWithDifferentDescriptions.kt create mode 100644 core/testdata/format/overridingFunction.kt create mode 100644 core/testdata/format/overridingFunction.md create mode 100644 core/testdata/format/paramTag.kt create mode 100644 core/testdata/format/paramTag.md create mode 100644 core/testdata/format/parameterAnchor.html create mode 100644 core/testdata/format/parameterAnchor.kt create mode 100644 core/testdata/format/parenthesis.html create mode 100644 core/testdata/format/parenthesis.kt create mode 100644 core/testdata/format/propertyVar.kt create mode 100644 core/testdata/format/propertyVar.md create mode 100644 core/testdata/format/reifiedTypeParameter.kt create mode 100644 core/testdata/format/reifiedTypeParameter.md create mode 100644 core/testdata/format/see.html create mode 100644 core/testdata/format/see.kt create mode 100644 core/testdata/format/starProjection.kt create mode 100644 core/testdata/format/starProjection.md create mode 100644 core/testdata/format/summarizeSignatures.kt create mode 100644 core/testdata/format/summarizeSignatures.md create mode 100644 core/testdata/format/summarizeSignaturesProperty.kt create mode 100644 core/testdata/format/summarizeSignaturesProperty.md create mode 100644 core/testdata/format/throwsTag.kt create mode 100644 core/testdata/format/throwsTag.md create mode 100644 core/testdata/format/tripleBackticks.html create mode 100644 core/testdata/format/tripleBackticks.kt create mode 100644 core/testdata/format/typeLink.html create mode 100644 core/testdata/format/typeLink.kt create mode 100644 core/testdata/format/typeParameterBounds.kt create mode 100644 core/testdata/format/typeParameterBounds.md create mode 100644 core/testdata/format/typeParameterVariance.kt create mode 100644 core/testdata/format/typeParameterVariance.md create mode 100644 core/testdata/format/typeProjectionVariance.kt create mode 100644 core/testdata/format/typeProjectionVariance.md create mode 100644 core/testdata/format/varargsFunction.kt create mode 100644 core/testdata/format/varargsFunction.md create mode 100644 core/testdata/functions/annotatedFunction.kt create mode 100644 core/testdata/functions/annotatedFunctionWithAnnotationParameters.kt create mode 100644 core/testdata/functions/function.kt create mode 100644 core/testdata/functions/functionWithAnnotatedParam.kt create mode 100644 core/testdata/functions/functionWithDefaultParameter.kt create mode 100644 core/testdata/functions/functionWithNoinlineParam.kt create mode 100644 core/testdata/functions/functionWithNotDocumentedAnnotation.kt create mode 100644 core/testdata/functions/functionWithParams.kt create mode 100644 core/testdata/functions/functionWithReceiver.kt create mode 100644 core/testdata/functions/genericFunction.kt create mode 100644 core/testdata/functions/genericFunctionWithConstraints.kt create mode 100644 core/testdata/functions/inlineFunction.kt create mode 100644 core/testdata/java/annotatedAnnotation.java create mode 100644 core/testdata/java/arrayType.java create mode 100644 core/testdata/java/constructors.java create mode 100644 core/testdata/java/deprecation.java create mode 100644 core/testdata/java/enumValues.java create mode 100644 core/testdata/java/field.java create mode 100644 core/testdata/java/inheritorLinks.java create mode 100644 core/testdata/java/innerClass.java create mode 100644 core/testdata/java/javaLangObject.java create mode 100644 core/testdata/java/member.java create mode 100644 core/testdata/java/memberWithModifiers.java create mode 100644 core/testdata/java/staticMethod.java create mode 100644 core/testdata/java/superClass.java create mode 100644 core/testdata/java/typeParameter.java create mode 100644 core/testdata/java/varargs.java create mode 100644 core/testdata/javadoc/obj.kt create mode 100644 core/testdata/javadoc/types.kt create mode 100644 core/testdata/links/linkToJDK.kt create mode 100644 core/testdata/links/linkToMember.kt create mode 100644 core/testdata/links/linkToParam.kt create mode 100644 core/testdata/links/linkToQualifiedMember.kt create mode 100644 core/testdata/links/linkToSelf.kt create mode 100644 core/testdata/markdown/spec.txt create mode 100644 core/testdata/packagedocs/stdlib.md create mode 100644 core/testdata/packages/dottedNamePackage.kt create mode 100644 core/testdata/packages/rootPackage.kt create mode 100644 core/testdata/packages/simpleNamePackage.kt create mode 100644 core/testdata/packages/simpleNamePackage2.kt create mode 100644 core/testdata/properties/annotatedProperty.kt create mode 100644 core/testdata/properties/propertyOverride.kt create mode 100644 core/testdata/properties/propertyWithReceiver.kt create mode 100644 core/testdata/properties/valueProperty.kt create mode 100644 core/testdata/properties/valuePropertyWithGetter.kt create mode 100644 core/testdata/properties/variableProperty.kt create mode 100644 core/testdata/properties/variablePropertyWithAccessors.kt (limited to 'core/testdata') diff --git a/core/testdata/classes/annotatedClass.kt b/core/testdata/classes/annotatedClass.kt new file mode 100644 index 00000000..1b58f56c --- /dev/null +++ b/core/testdata/classes/annotatedClass.kt @@ -0,0 +1 @@ +@Strictfp class Foo() {} diff --git a/core/testdata/classes/annotatedClassWithAnnotationParameters.kt b/core/testdata/classes/annotatedClassWithAnnotationParameters.kt new file mode 100644 index 00000000..930d6a62 --- /dev/null +++ b/core/testdata/classes/annotatedClassWithAnnotationParameters.kt @@ -0,0 +1 @@ +@Deprecated("should no longer be used") class Foo() {} diff --git a/core/testdata/classes/classWithCompanionObject.kt b/core/testdata/classes/classWithCompanionObject.kt new file mode 100644 index 00000000..fdbd915d --- /dev/null +++ b/core/testdata/classes/classWithCompanionObject.kt @@ -0,0 +1,7 @@ +class Klass() { + companion object { + val x = 1 + + fun foo() {} + } +} diff --git a/core/testdata/classes/classWithConstructor.kt b/core/testdata/classes/classWithConstructor.kt new file mode 100644 index 00000000..0751d570 --- /dev/null +++ b/core/testdata/classes/classWithConstructor.kt @@ -0,0 +1 @@ +class Klass(name: String) \ No newline at end of file diff --git a/core/testdata/classes/classWithFunction.kt b/core/testdata/classes/classWithFunction.kt new file mode 100644 index 00000000..a981cfb6 --- /dev/null +++ b/core/testdata/classes/classWithFunction.kt @@ -0,0 +1,4 @@ +class Klass { + fun fn() { + } +} diff --git a/core/testdata/classes/classWithProperty.kt b/core/testdata/classes/classWithProperty.kt new file mode 100644 index 00000000..2a849572 --- /dev/null +++ b/core/testdata/classes/classWithProperty.kt @@ -0,0 +1,3 @@ +class Klass { + val name: String = "" +} \ No newline at end of file diff --git a/core/testdata/classes/companionObjectExtension.kt b/core/testdata/classes/companionObjectExtension.kt new file mode 100644 index 00000000..4b471376 --- /dev/null +++ b/core/testdata/classes/companionObjectExtension.kt @@ -0,0 +1,10 @@ +class Foo { + companion object Default { + } +} + + +/** + * The def + */ +val Foo.Default.x: Int get() = 1 diff --git a/core/testdata/classes/dataClass.kt b/core/testdata/classes/dataClass.kt new file mode 100644 index 00000000..62c6f0ec --- /dev/null +++ b/core/testdata/classes/dataClass.kt @@ -0,0 +1 @@ +data class Foo() {} diff --git a/core/testdata/classes/emptyClass.kt b/core/testdata/classes/emptyClass.kt new file mode 100644 index 00000000..abd20cc8 --- /dev/null +++ b/core/testdata/classes/emptyClass.kt @@ -0,0 +1,3 @@ +class Klass { + +} \ No newline at end of file diff --git a/core/testdata/classes/emptyObject.kt b/core/testdata/classes/emptyObject.kt new file mode 100644 index 00000000..4138bf31 --- /dev/null +++ b/core/testdata/classes/emptyObject.kt @@ -0,0 +1,3 @@ +object Obj { + +} \ No newline at end of file diff --git a/core/testdata/classes/genericClass.kt b/core/testdata/classes/genericClass.kt new file mode 100644 index 00000000..db20ff7e --- /dev/null +++ b/core/testdata/classes/genericClass.kt @@ -0,0 +1,3 @@ +class Klass { + +} \ No newline at end of file diff --git a/core/testdata/classes/indirectOverride.kt b/core/testdata/classes/indirectOverride.kt new file mode 100644 index 00000000..8d091b80 --- /dev/null +++ b/core/testdata/classes/indirectOverride.kt @@ -0,0 +1,9 @@ +abstract class C() { + abstract fun foo() +} + +abstract class D(): C() + +class E(): D() { + override fun foo() {} +} diff --git a/core/testdata/classes/innerClass.kt b/core/testdata/classes/innerClass.kt new file mode 100644 index 00000000..3c6e497d --- /dev/null +++ b/core/testdata/classes/innerClass.kt @@ -0,0 +1,5 @@ +class C { + inner class D { + + } +} \ No newline at end of file diff --git a/core/testdata/classes/javaAnnotationClass.kt b/core/testdata/classes/javaAnnotationClass.kt new file mode 100644 index 00000000..95600147 --- /dev/null +++ b/core/testdata/classes/javaAnnotationClass.kt @@ -0,0 +1,5 @@ +import java.lang.annotation.Retention +import java.lang.annotation.RetentionPolicy + +@Retention(RetentionPolicy.SOURCE) +public annotation class throws() diff --git a/core/testdata/classes/notOpenClass.kt b/core/testdata/classes/notOpenClass.kt new file mode 100644 index 00000000..edee2c1a --- /dev/null +++ b/core/testdata/classes/notOpenClass.kt @@ -0,0 +1,7 @@ +open class C() { + open fun f() {} +} + +class D() : C() { + override fun f() {} +} diff --git a/core/testdata/classes/sealedClass.kt b/core/testdata/classes/sealedClass.kt new file mode 100644 index 00000000..93350393 --- /dev/null +++ b/core/testdata/classes/sealedClass.kt @@ -0,0 +1 @@ +sealed class Foo() {} diff --git a/core/testdata/classes/secondaryConstructor.kt b/core/testdata/classes/secondaryConstructor.kt new file mode 100644 index 00000000..e5cb2557 --- /dev/null +++ b/core/testdata/classes/secondaryConstructor.kt @@ -0,0 +1,5 @@ +class C() { + /** This is a secondary constructor. */ + constructor(s: String): this() { + } +} diff --git a/core/testdata/comments/directive.kt b/core/testdata/comments/directive.kt new file mode 100644 index 00000000..b27f5a48 --- /dev/null +++ b/core/testdata/comments/directive.kt @@ -0,0 +1,35 @@ +/** + * Summary + * + * @sample example1 + * @sample example2 + * @sample X.example3 + * @sample X.Y.example4 + */ +val property = "test" + +fun example1(node: String) = if (true) { + println(property) +} + +fun example2(node: String) { + if (true) { + println(property) + } +} + +class X { + fun example3(node: String) { + if (true) { + println(property) + } + } + + class Y { + fun example4(node: String) { + if (true) { + println(property) + } + } + } +} diff --git a/core/testdata/comments/emptyDoc.kt b/core/testdata/comments/emptyDoc.kt new file mode 100644 index 00000000..b87cce57 --- /dev/null +++ b/core/testdata/comments/emptyDoc.kt @@ -0,0 +1 @@ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/emptyDocButComment.kt b/core/testdata/comments/emptyDocButComment.kt new file mode 100644 index 00000000..ceb24753 --- /dev/null +++ b/core/testdata/comments/emptyDocButComment.kt @@ -0,0 +1,2 @@ +/* comment */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/emptySection.kt b/core/testdata/comments/emptySection.kt new file mode 100644 index 00000000..47d6b1a5 --- /dev/null +++ b/core/testdata/comments/emptySection.kt @@ -0,0 +1,6 @@ + +/** + * Summary + * @one + */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/multilineDoc.kt b/core/testdata/comments/multilineDoc.kt new file mode 100644 index 00000000..31cfa3a7 --- /dev/null +++ b/core/testdata/comments/multilineDoc.kt @@ -0,0 +1,7 @@ +/** + * doc1 + * + * doc2 + * doc3 + */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/multilineDocWithComment.kt b/core/testdata/comments/multilineDocWithComment.kt new file mode 100644 index 00000000..88d22642 --- /dev/null +++ b/core/testdata/comments/multilineDocWithComment.kt @@ -0,0 +1,8 @@ +/** + * doc1 + * + * doc2 + * doc3 + */ +// comment +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/multilineSection.kt b/core/testdata/comments/multilineSection.kt new file mode 100644 index 00000000..6ef4df2c --- /dev/null +++ b/core/testdata/comments/multilineSection.kt @@ -0,0 +1,7 @@ +/** + * Summary + * @one + * line one + * line two + */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/oneLineDoc.kt b/core/testdata/comments/oneLineDoc.kt new file mode 100644 index 00000000..92a40c67 --- /dev/null +++ b/core/testdata/comments/oneLineDoc.kt @@ -0,0 +1,2 @@ +/** doc */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/oneLineDocWithComment.kt b/core/testdata/comments/oneLineDocWithComment.kt new file mode 100644 index 00000000..c8467933 --- /dev/null +++ b/core/testdata/comments/oneLineDocWithComment.kt @@ -0,0 +1,3 @@ +/** doc */ +// comment +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/oneLineDocWithEmptyLine.kt b/core/testdata/comments/oneLineDocWithEmptyLine.kt new file mode 100644 index 00000000..e364c416 --- /dev/null +++ b/core/testdata/comments/oneLineDocWithEmptyLine.kt @@ -0,0 +1,3 @@ +/** doc */ + +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/section1.kt b/core/testdata/comments/section1.kt new file mode 100644 index 00000000..7c763b4c --- /dev/null +++ b/core/testdata/comments/section1.kt @@ -0,0 +1,5 @@ +/** + * Summary + * @one section one + */ +val property = "test" \ No newline at end of file diff --git a/core/testdata/comments/section2.kt b/core/testdata/comments/section2.kt new file mode 100644 index 00000000..e280793e --- /dev/null +++ b/core/testdata/comments/section2.kt @@ -0,0 +1,6 @@ +/** + * Summary + * @one section one + * @two section two + */ +val property = "test" \ No newline at end of file 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 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 <E> containsAll(elements: Collection<@UnsafeVariance E>): @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 + + +| [<init>](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 + + +| [<init>](test/-foo/-init-) | `Foo()` | + + +### Properties + + +| [x](test/-foo/x) | `val x: Int` | + + +### Functions + + +| [bar](test/-foo/bar) | `fun bar(notInlined: () -> 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 @@ + + +test / foo + + +test / foo
+
+

foo

+fun foo(): Unit
+

bar[]

+
+
+ + 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 @@ -0,0 +1,4 @@ +/** + * bar[] + */ +fun foo() {} diff --git a/core/testdata/format/brokenLink.html b/core/testdata/format/brokenLink.html new file mode 100644 index 00000000..32135787 --- /dev/null +++ b/core/testdata/format/brokenLink.html @@ -0,0 +1,14 @@ + + +test / f + + +test / f
+
+

f

+fun f(): Unit
+

This references noSuchIdentifier.

+
+
+ + diff --git a/core/testdata/format/brokenLink.kt b/core/testdata/format/brokenLink.kt new file mode 100644 index 00000000..268a986e --- /dev/null +++ b/core/testdata/format/brokenLink.kt @@ -0,0 +1,4 @@ +/** + * This references [noSuchIdentifier]. + */ +fun f() { } diff --git a/core/testdata/format/classWithCompanionObject.html b/core/testdata/format/classWithCompanionObject.html new file mode 100644 index 00000000..be9247ea --- /dev/null +++ b/core/testdata/format/classWithCompanionObject.html @@ -0,0 +1,46 @@ + + +test / Klass + + +test / Klass
+
+

Klass

+class Klass
+
+
+

Constructors

+ + + + + + + +
+<init> +Klass()
+

Companion Object Properties

+ + + + + + + +
+x +val x: Int
+

Companion Object Functions

+ + + + + + + +
+foo +fun foo(): Unit
+ + diff --git a/core/testdata/format/classWithCompanionObject.kt b/core/testdata/format/classWithCompanionObject.kt new file mode 100644 index 00000000..fdbd915d --- /dev/null +++ b/core/testdata/format/classWithCompanionObject.kt @@ -0,0 +1,7 @@ +class Klass() { + companion object { + val x = 1 + + fun foo() {} + } +} diff --git a/core/testdata/format/classWithCompanionObject.md b/core/testdata/format/classWithCompanionObject.md new file mode 100644 index 00000000..9398c3d3 --- /dev/null +++ b/core/testdata/format/classWithCompanionObject.md @@ -0,0 +1,26 @@ +[test](test/index) / [Klass](test/-klass/index) + + +# Klass + +`class Klass` + + + +### Constructors + + +| [<init>](test/-klass/-init-) | `Klass()` | + + +### Companion Object Properties + + +| [x](test/-klass/x) | `val x: Int` | + + +### Companion Object Functions + + +| [foo](test/-klass/foo) | `fun foo(): Unit` | + diff --git a/core/testdata/format/codeSpan.html b/core/testdata/format/codeSpan.html new file mode 100644 index 00000000..cc553043 --- /dev/null +++ b/core/testdata/format/codeSpan.html @@ -0,0 +1,14 @@ + + +test / foo + + +test / foo
+
+

foo

+fun foo(): Unit
+

This is a code span.

+
+
+ + diff --git a/core/testdata/format/codeSpan.kt b/core/testdata/format/codeSpan.kt new file mode 100644 index 00000000..645f454a --- /dev/null +++ b/core/testdata/format/codeSpan.kt @@ -0,0 +1,4 @@ +/** + * This is a `code span`. + */ +fun foo() {} \ No newline at end of file diff --git a/core/testdata/format/companionObjectExtension.kt b/core/testdata/format/companionObjectExtension.kt new file mode 100644 index 00000000..f452de2c --- /dev/null +++ b/core/testdata/format/companionObjectExtension.kt @@ -0,0 +1,10 @@ +class Foo { + companion object Default { + } +} + + +/** + * The default object property. + */ +val Foo.Default.x: Int get() = 1 diff --git a/core/testdata/format/companionObjectExtension.md b/core/testdata/format/companionObjectExtension.md new file mode 100644 index 00000000..271da5b0 --- /dev/null +++ b/core/testdata/format/companionObjectExtension.md @@ -0,0 +1,23 @@ +[test](test/index) / [Foo](test/-foo/index) + + +# Foo + +`class Foo` + + + +### Constructors + + +| [<init>](test/-foo/-init-) | `Foo()` | + + +### Companion Object Extension Properties + + +| [x](test/x) | `val Foo.Default.x: Int` +The default object property. + + | + diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html new file mode 100644 index 00000000..e7b139d8 --- /dev/null +++ b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html @@ -0,0 +1,37 @@ + + +test / test.Bar + + +test / test / Bar
+
+

Bar

+class Bar : Foo
+

See xyzzy

+
+
+

Constructors

+ + + + + + + +
+<init> +Bar()

See xyzzy

+
+

Inherited Functions

+ + + + + + + +
+xyzzy +open fun xyzzy(): Unit
+ + diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt new file mode 100644 index 00000000..102782f9 --- /dev/null +++ b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt @@ -0,0 +1,6 @@ +package test + +/** + * See [xyzzy] + */ +class Bar(): Foo() diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java b/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java new file mode 100644 index 00000000..7c143030 --- /dev/null +++ b/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java @@ -0,0 +1,6 @@ +package test; + +public class Foo { + public void xyzzy() { + } +} diff --git a/core/testdata/format/deprecated.class.html b/core/testdata/format/deprecated.class.html new file mode 100644 index 00000000..69da63a1 --- /dev/null +++ b/core/testdata/format/deprecated.class.html @@ -0,0 +1,41 @@ + + + + +test / C
+
+

C

+class C
+Deprecated: This class sucks
+
+
+
+test / f
+
+

f

+fun f(): Unit
+Deprecated: This function sucks
+
+
+
+test / p
+
+

p

+val p: Int
+Deprecated: This property sucks
+
+
+
+

Constructors

+ + + + + + + +
+<init> +C()
+ + diff --git a/core/testdata/format/deprecated.kt b/core/testdata/format/deprecated.kt new file mode 100644 index 00000000..4fc568c2 --- /dev/null +++ b/core/testdata/format/deprecated.kt @@ -0,0 +1,5 @@ +@Deprecated("This class sucks") class C() { } + +@Deprecated("This function sucks") fun f() { } + +@Deprecated("This property sucks") val p: Int get() = 0 diff --git a/core/testdata/format/deprecated.package.html b/core/testdata/format/deprecated.package.html new file mode 100644 index 00000000..dd80471c --- /dev/null +++ b/core/testdata/format/deprecated.package.html @@ -0,0 +1,43 @@ + + +test / root package + + +test
+
+

Package

+

Types

+ + + + + + + +
+C +class C
+

Properties

+ + + + + + + +
+p +val p: Int
+

Functions

+ + + + + + + +
+f +fun f(): Unit
+ + diff --git a/core/testdata/format/emptyDescription.kt b/core/testdata/format/emptyDescription.kt new file mode 100644 index 00000000..3ed81dfa --- /dev/null +++ b/core/testdata/format/emptyDescription.kt @@ -0,0 +1,5 @@ +/** + * Function fn + */ +fun fn() { +} \ No newline at end of file diff --git a/core/testdata/format/emptyDescription.md b/core/testdata/format/emptyDescription.md new file mode 100644 index 00000000..e82e7228 --- /dev/null +++ b/core/testdata/format/emptyDescription.md @@ -0,0 +1,11 @@ +[test](test/index) / [fn](test/fn) + + +# fn + +`fun fn(): Unit` + +Function fn + + + diff --git a/core/testdata/format/entity.html b/core/testdata/format/entity.html new file mode 100644 index 00000000..a939faad --- /dev/null +++ b/core/testdata/format/entity.html @@ -0,0 +1,26 @@ + + +test / Bar + + +test / Bar
+
+

Bar

+class Bar
+

Copyright © JetBrains 2015 "

+
+
+

Constructors

+ + + + + + + +
+<init> +Bar()

Copyright © JetBrains 2015 "

+
+ + diff --git a/core/testdata/format/entity.kt b/core/testdata/format/entity.kt new file mode 100644 index 00000000..163d2ee6 --- /dev/null +++ b/core/testdata/format/entity.kt @@ -0,0 +1,4 @@ +/** + * Copyright © JetBrains 2015 " + */ +class Bar {} diff --git a/core/testdata/format/enumClass.kt b/core/testdata/format/enumClass.kt new file mode 100644 index 00000000..c1af69d8 --- /dev/null +++ b/core/testdata/format/enumClass.kt @@ -0,0 +1,4 @@ +public enum class InlineOption { + LOCAL_CONTINUE_AND_BREAK, + ONLY_LOCAL_RETURN +} diff --git a/core/testdata/format/enumClass.md b/core/testdata/format/enumClass.md new file mode 100644 index 00000000..7a0e03ff --- /dev/null +++ b/core/testdata/format/enumClass.md @@ -0,0 +1,15 @@ +[test](test/index) / [InlineOption](test/-inline-option/index) + + +# InlineOption + +`enum class InlineOption` + + + +### Enum Values + + +| [LOCAL_CONTINUE_AND_BREAK](test/-inline-option/-l-o-c-a-l_-c-o-n-t-i-n-u-e_-a-n-d_-b-r-e-a-k) | | +| [ONLY_LOCAL_RETURN](test/-inline-option/-o-n-l-y_-l-o-c-a-l_-r-e-t-u-r-n) | | + diff --git a/core/testdata/format/enumClass.value.md b/core/testdata/format/enumClass.value.md new file mode 100644 index 00000000..bcb685d1 --- /dev/null +++ b/core/testdata/format/enumClass.value.md @@ -0,0 +1,8 @@ +[test](test/index) / [InlineOption](test/-inline-option/index) / [LOCAL_CONTINUE_AND_BREAK](test/-inline-option/-l-o-c-a-l_-c-o-n-t-i-n-u-e_-a-n-d_-b-r-e-a-k) + + +# LOCAL_CONTINUE_AND_BREAK + +`LOCAL_CONTINUE_AND_BREAK` + + diff --git a/core/testdata/format/extensionFunctionParameter.kt b/core/testdata/format/extensionFunctionParameter.kt new file mode 100644 index 00000000..bfb344b9 --- /dev/null +++ b/core/testdata/format/extensionFunctionParameter.kt @@ -0,0 +1 @@ +public inline fun T.apply(f: T.() -> Unit): T { f(); return this } diff --git a/core/testdata/format/extensionFunctionParameter.md b/core/testdata/format/extensionFunctionParameter.md new file mode 100644 index 00000000..6980912d --- /dev/null +++ b/core/testdata/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/core/testdata/format/extensions.class.md b/core/testdata/format/extensions.class.md new file mode 100644 index 00000000..c66cdb01 --- /dev/null +++ b/core/testdata/format/extensions.class.md @@ -0,0 +1,16 @@ +[test](test/index) / [foo](test/foo/index) / [kotlin.String](test/foo/kotlin.-string/index) + + +### Extensions for kotlin.String + + +| [fn](test/foo/kotlin.-string/fn) | `fun String.fn(): Unit` +`fun String.fn(x: Int): Unit` +Function with receiver + + | +| [foobar](test/foo/kotlin.-string/foobar) | `val String.foobar: Int` +Property with receiver. + + | + diff --git a/core/testdata/format/extensions.kt b/core/testdata/format/extensions.kt new file mode 100644 index 00000000..6f2eff9d --- /dev/null +++ b/core/testdata/format/extensions.kt @@ -0,0 +1,19 @@ +package foo + +/** + * Function with receiver + */ +fun String.fn() { +} + +/** + * Function with receiver + */ +fun String.fn(x: Int) { +} + +/** + * Property with receiver. + */ +val String.foobar: Int + get() = size() * 2 diff --git a/core/testdata/format/extensions.package.md b/core/testdata/format/extensions.package.md new file mode 100644 index 00000000..76ff3676 --- /dev/null +++ b/core/testdata/format/extensions.package.md @@ -0,0 +1,11 @@ +[test](test/index) / [foo](test/foo/index) + + +## Package foo + + +### Extensions for External Classes + + +| [kotlin.String](test/foo/kotlin.-string/index) | | + diff --git a/core/testdata/format/functionWithDefaultParameter.kt b/core/testdata/format/functionWithDefaultParameter.kt new file mode 100644 index 00000000..3a3a102f --- /dev/null +++ b/core/testdata/format/functionWithDefaultParameter.kt @@ -0,0 +1 @@ +fun f(x: String = "") {} diff --git a/core/testdata/format/functionWithDefaultParameter.md b/core/testdata/format/functionWithDefaultParameter.md new file mode 100644 index 00000000..21e9eff7 --- /dev/null +++ b/core/testdata/format/functionWithDefaultParameter.md @@ -0,0 +1,8 @@ +[test](test/index) / [f](test/f) + + +# f + +`fun f(x: String = ""): Unit` + + diff --git a/core/testdata/format/htmlEscaping.html b/core/testdata/format/htmlEscaping.html new file mode 100644 index 00000000..a485c08f --- /dev/null +++ b/core/testdata/format/htmlEscaping.html @@ -0,0 +1,14 @@ + + +test / x + + +test / x
+
+

x

+fun <T> x(): T?
+

Special characters: < is "less than", > is "greater than", & is "ampersand"

+
+
+ + diff --git a/core/testdata/format/htmlEscaping.kt b/core/testdata/format/htmlEscaping.kt new file mode 100644 index 00000000..8778d8a5 --- /dev/null +++ b/core/testdata/format/htmlEscaping.kt @@ -0,0 +1,4 @@ +/** + * Special characters: < is "less than", > is "greater than", & is "ampersand" + */ +fun x(): T? = null diff --git a/core/testdata/format/inheritedExtensions.kt b/core/testdata/format/inheritedExtensions.kt new file mode 100644 index 00000000..e38fe00d --- /dev/null +++ b/core/testdata/format/inheritedExtensions.kt @@ -0,0 +1,11 @@ +open class Foo + +class Bar : Foo() + +fun Foo.first() { + +} + +fun Bar.second() { + +} diff --git a/core/testdata/format/inheritedExtensions.md b/core/testdata/format/inheritedExtensions.md new file mode 100644 index 00000000..79137eac --- /dev/null +++ b/core/testdata/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/core/testdata/format/inheritedMembers.kt b/core/testdata/format/inheritedMembers.kt new file mode 100644 index 00000000..2d0c4ca1 --- /dev/null +++ b/core/testdata/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/core/testdata/format/inheritedMembers.md b/core/testdata/format/inheritedMembers.md new file mode 100644 index 00000000..d58d3974 --- /dev/null +++ b/core/testdata/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/core/testdata/format/javaCodeInParam.java b/core/testdata/format/javaCodeInParam.java new file mode 100644 index 00000000..73025fcc --- /dev/null +++ b/core/testdata/format/javaCodeInParam.java @@ -0,0 +1,5 @@ +/** + * @param T this is {@code some code} and other text + */ +class C { +} diff --git a/core/testdata/format/javaCodeInParam.md b/core/testdata/format/javaCodeInParam.md new file mode 100644 index 00000000..b1d2d871 --- /dev/null +++ b/core/testdata/format/javaCodeInParam.md @@ -0,0 +1,21 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`protected open class C<T : Any>` + + + + +### Parameters + +`T` - this is `some code` and other text + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` | + diff --git a/core/testdata/format/javaCodeLiteralTags.java b/core/testdata/format/javaCodeLiteralTags.java new file mode 100644 index 00000000..e71ddaa7 --- /dev/null +++ b/core/testdata/format/javaCodeLiteralTags.java @@ -0,0 +1,6 @@ +/** + *

{@code AC}

+ *

{@literal AC}

+ */ +class C { +} diff --git a/core/testdata/format/javaCodeLiteralTags.md b/core/testdata/format/javaCodeLiteralTags.md new file mode 100644 index 00000000..83c9cc33 --- /dev/null +++ b/core/testdata/format/javaCodeLiteralTags.md @@ -0,0 +1,23 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`protected open class C` + + +`A<B>C` + + +A<B>C + + + + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` | + diff --git a/core/testdata/format/javaDeprecated.html b/core/testdata/format/javaDeprecated.html new file mode 100644 index 00000000..236c6490 --- /dev/null +++ b/core/testdata/format/javaDeprecated.html @@ -0,0 +1,14 @@ + + +test / Foo.foo + + +test / Foo / foo
+
+

foo

+open fun foo(): Unit
+Deprecated: use #bar instead

+
+
+ + diff --git a/core/testdata/format/javaDeprecated.java b/core/testdata/format/javaDeprecated.java new file mode 100644 index 00000000..9694a444 --- /dev/null +++ b/core/testdata/format/javaDeprecated.java @@ -0,0 +1,5 @@ +class Foo { + /** @deprecated use {@link #bar} instead */ + public void foo() {} + public void bar() {} +} diff --git a/core/testdata/format/javaLinkTag.html b/core/testdata/format/javaLinkTag.html new file mode 100644 index 00000000..1b6921ab --- /dev/null +++ b/core/testdata/format/javaLinkTag.html @@ -0,0 +1,36 @@ + + +test / Foo + + +test / Foo
+
+

Foo

+protected open class Foo
+

Call #bar() to do the job.

+
+
+

Constructors

+ + + + + + + +
+<init> +Foo()
+

Functions

+ + + + + + + +
+bar +open fun bar(): Unit
+ + diff --git a/core/testdata/format/javaLinkTag.java b/core/testdata/format/javaLinkTag.java new file mode 100644 index 00000000..84f761c6 --- /dev/null +++ b/core/testdata/format/javaLinkTag.java @@ -0,0 +1,6 @@ +/** + * Call {@link #bar()} to do the job. + */ +class Foo { + public void bar() +} diff --git a/core/testdata/format/javaLinkTagWithLabel.html b/core/testdata/format/javaLinkTagWithLabel.html new file mode 100644 index 00000000..aabfbc58 --- /dev/null +++ b/core/testdata/format/javaLinkTagWithLabel.html @@ -0,0 +1,36 @@ + + +test / Foo + + +test / Foo
+
+

Foo

+protected open class Foo
+

Call this wonderful method to do the job.

+
+
+

Constructors

+ + + + + + + +
+<init> +Foo()
+

Functions

+ + + + + + + +
+bar +open fun bar(): Unit
+ + diff --git a/core/testdata/format/javaLinkTagWithLabel.java b/core/testdata/format/javaLinkTagWithLabel.java new file mode 100644 index 00000000..1db5ad70 --- /dev/null +++ b/core/testdata/format/javaLinkTagWithLabel.java @@ -0,0 +1,6 @@ +/** + * Call {@link #bar() this wonderful method} to do the job. + */ +class Foo { + public void bar() +} diff --git a/core/testdata/format/javaSeeTag.html b/core/testdata/format/javaSeeTag.html new file mode 100644 index 00000000..a6813df3 --- /dev/null +++ b/core/testdata/format/javaSeeTag.html @@ -0,0 +1,38 @@ + + +test / Foo + + +test / Foo
+
+

Foo

+open class Foo
+

+See Also
+#bar
+
+
+

Constructors

+ + + + + + + +
+<init> +Foo()
+

Functions

+ + + + + + + +
+bar +open fun bar(): Unit
+ + diff --git a/core/testdata/format/javaSeeTag.java b/core/testdata/format/javaSeeTag.java new file mode 100644 index 00000000..94a24606 --- /dev/null +++ b/core/testdata/format/javaSeeTag.java @@ -0,0 +1,6 @@ +/** + * @see #bar + */ +public class Foo { + public void bar() {} +} \ No newline at end of file diff --git a/core/testdata/format/javaSpaceInAuthor.java b/core/testdata/format/javaSpaceInAuthor.java new file mode 100644 index 00000000..f980ae07 --- /dev/null +++ b/core/testdata/format/javaSpaceInAuthor.java @@ -0,0 +1,5 @@ +/** + * @author Dmitry Jemerov + */ +class C { +} \ No newline at end of file diff --git a/core/testdata/format/javaSpaceInAuthor.md b/core/testdata/format/javaSpaceInAuthor.md new file mode 100644 index 00000000..4d19ed01 --- /dev/null +++ b/core/testdata/format/javaSpaceInAuthor.md @@ -0,0 +1,19 @@ +[test](test/index) / [C](test/-c/index) + + +# C + +`protected open class C` + + + +**Author** +Dmitry Jemerov + + + +### Constructors + + +| [<init>](test/-c/-init-) | `C()` | + diff --git a/core/testdata/format/javaSupertype.html b/core/testdata/format/javaSupertype.html new file mode 100644 index 00000000..4c847281 --- /dev/null +++ b/core/testdata/format/javaSupertype.html @@ -0,0 +1,35 @@ + + +test / C.Bar + + +test / C / Bar
+
+

Bar

+open class Bar :