File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed
src/commonMain/kotlin/io/github/optimumcode/json/pointer Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ public final class io/github/optimumcode/json/pointer/JsonPointerKt {
30
30
public static final fun JsonPointer (Ljava/lang/String;)Lio/github/optimumcode/json/pointer/JsonPointer;
31
31
}
32
32
33
+ public final class io/github/optimumcode/json/pointer/internal/ExtensionsKt {
34
+ public static final fun getLength (Lio/github/optimumcode/json/pointer/JsonPointer;)I
35
+ }
36
+
33
37
public final class io/github/optimumcode/json/schema/AbsoluteLocation {
34
38
public static final field Companion Lio/github/optimumcode/json/schema/AbsoluteLocation$Companion;
35
39
public fun <init> (Lcom/eygraber/uri/Uri;Lio/github/optimumcode/json/pointer/JsonPointer;)V
Original file line number Diff line number Diff line change @@ -342,4 +342,4 @@ afterEvaluate {
342
342
tasks.named(" check" ).configure {
343
343
dependsOn(detektAllTask)
344
344
}
345
- }
345
+ }
Original file line number Diff line number Diff line change @@ -31,6 +31,15 @@ public sealed class JsonPointer(
31
31
*/
32
32
public fun atIndex (index : Int ): JsonPointer {
33
33
require(index >= 0 ) { " negative index: $index " }
34
+ if (true ) {
35
+ if (true ) {
36
+ if (true ) {
37
+ if (true ) {
38
+ val a = 4
39
+ }
40
+ }
41
+ }
42
+ }
34
43
return insertLast(
35
44
SegmentPointer (
36
45
propertyName = index.toString(),
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import io.github.optimumcode.json.pointer.EmptyPointer
6
6
import io.github.optimumcode.json.pointer.JsonPointer
7
7
import io.github.optimumcode.json.pointer.SegmentPointer
8
8
9
- internal val JsonPointer .length: Int
9
+ public val JsonPointer .length: Int
10
10
get() {
11
11
if (this is EmptyPointer ) {
12
12
return 0
You can’t perform that action at this time.
0 commit comments