Correctly indent upper bound separator in the generated stdlib code

This commit is contained in:
Ilya Gorbunov
2018-04-20 23:10:47 +03:00
parent 5381d0ed58
commit c239d346f7
15 changed files with 48 additions and 48 deletions
@@ -625,7 +625,7 @@ object Aggregates : TemplateGroupBase() {
"""
}
typeParam("S")
typeParam("T: S")
typeParam("T : S")
returns("S")
body {
"""
@@ -698,7 +698,7 @@ object Aggregates : TemplateGroupBase() {
"""
}
typeParam("S")
typeParam("T: S")
typeParam("T : S")
returns("S")
body {
"""
@@ -759,7 +759,7 @@ object Aggregates : TemplateGroupBase() {
doc { "Accumulates value starting with the first ${f.element} and applying [operation] from left to right to current accumulator value and each ${f.element}." }
typeParam("S")
typeParam("T: S")
typeParam("T : S")
returns("S")
body {
"""
@@ -815,7 +815,7 @@ object Aggregates : TemplateGroupBase() {
inline()
doc { "Accumulates value starting with last ${f.element} and applying [operation] from right to left to each ${f.element} and current accumulator value." }
typeParam("S")
typeParam("T: S")
typeParam("T : S")
returns("S")
body {
"""
@@ -496,7 +496,7 @@ object ArrayOps : TemplateGroupBase() {
include(ArraysOfPrimitives, PrimitiveType.numericPrimitives + PrimitiveType.Char)
include(ArraysOfObjects)
} builder {
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc { "Sorts the array in-place according to the natural order of its elements." }
specialFor(ArraysOfPrimitives) {
doc { "Sorts the array in-place." }
@@ -30,7 +30,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Ranges)
returns("SELF")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc {
"""
Ensures that this value is not less than the specified [minimumValue].
@@ -52,7 +52,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Ranges)
returns("SELF")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc {
"""
Ensures that this value is not greater than the specified [maximumValue].
@@ -74,7 +74,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Ranges)
returns("SELF")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc {
"""
Ensures that this value lies in the specified [range].
@@ -117,7 +117,7 @@ object ComparableOps : TemplateGroupBase() {
sourceFile(SourceFile.Ranges)
since("1.1")
returns("SELF")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc {
"""
Ensures that this value lies in the specified [range].
@@ -147,7 +147,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Comparisons)
since("1.1")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
returns("T")
receiver("")
doc {
@@ -191,7 +191,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Comparisons)
since("1.1")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
returns("T")
receiver("")
specialFor(Primitives) { inlineOnly() }
@@ -261,7 +261,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Comparisons)
since("1.1")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
returns("T")
receiver("")
doc {
@@ -305,7 +305,7 @@ object ComparableOps : TemplateGroupBase() {
} builder {
sourceFile(SourceFile.Comparisons)
since("1.1")
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
returns("T")
receiver("")
specialFor(Primitives) { inlineOnly() }
@@ -377,7 +377,7 @@ object ComparableOps : TemplateGroupBase() {
sourceFile(SourceFile.Ranges)
specialFor(Generic) { signature("coerceIn(minimumValue: SELF?, maximumValue: SELF?)", notForSorting = true) }
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
returns("SELF")
doc {
"""
@@ -99,7 +99,7 @@ object Snapshots : TemplateGroupBase() {
include(CharSequences)
platforms(Platform.JVM)
} builder {
typeParam("T: Comparable<T>")
typeParam("T : Comparable<T>")
doc { "Returns a [SortedSet][java.util.SortedSet] of all ${f.element.pluralize()}." }
returns("java.util.SortedSet<T>")
body { "return toCollection(java.util.TreeSet<T>())" }