Fixed maven build. Renamed usages of upto to rangeTo. Excluded DownTo.kt from js lib compilation.
This commit is contained in:
@@ -517,7 +517,7 @@ class KModel(val context: BindingContext, val config: KDocConfig, val sourceDirs
|
||||
// lets remove the /** ... * ... */ tokens
|
||||
val buffer = StringBuilder()
|
||||
val last = lines.size - 1
|
||||
for (i in 0.upto(last)) {
|
||||
for (i in 0.rangeTo(last)) {
|
||||
var text = lines[i] ?: ""
|
||||
text = text.trim()
|
||||
if (i == 0) {
|
||||
@@ -630,7 +630,7 @@ $highlight"""
|
||||
break
|
||||
}
|
||||
var count = 1
|
||||
for (i in 0.upto(remaining.size - 1)) {
|
||||
for (i in 0.rangeTo(remaining.size - 1)) {
|
||||
val ch = remaining[i]
|
||||
if (ch == '{') count ++
|
||||
else if (ch == '}') {
|
||||
@@ -653,7 +653,7 @@ $highlight"""
|
||||
// lets try resolve the include name relative to this file
|
||||
val paths = relativeName.split("/")
|
||||
val size = paths.size
|
||||
for (i in 0.upto(size - 2)) {
|
||||
for (i in 0.rangeTo(size - 2)) {
|
||||
val path = paths[i]
|
||||
if (path == ".") continue
|
||||
else if (path == "..") dir = dir?.getParent()
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
<fileset dir="${basedir}/../../stdlib/src/generated">
|
||||
<include name="*.kt"/>
|
||||
<exclude name="**/*JVM.kt"/>
|
||||
<exclude name="DownTo.kt"/>
|
||||
<!--
|
||||
<include name="JUtilIteratorsFromJLangIterables.kt"/>
|
||||
<include name="JUtilIterablesFromJUtilCollections.kt"/>
|
||||
|
||||
@@ -33,9 +33,9 @@ public final class IntRange implements Range<Integer>, IntIterable {
|
||||
@Override
|
||||
public String toString() {
|
||||
if (count >= 0) {
|
||||
return getStart() + ".upto(" + getEnd() + ")";
|
||||
return getStart() + ".rangeTo(" + getEnd() + ")";
|
||||
} else {
|
||||
return getStart() + ".downto(" + getEnd() + ")";
|
||||
return getStart() + ".downTo(" + getEnd() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user