Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit f5fd04e

Browse files
committed
Make KString a statement again
Partial revert of 5c0063c.
1 parent bca09b6 commit f5fd04e

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/org/openrewrite/kotlin/tree

1 file changed

+3
-3
lines changed

src/main/java/org/openrewrite/kotlin/tree/K.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ public String toString() {
11841184
@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
11851185
@Data
11861186
@With
1187-
final class KString implements K, Expression {
1187+
final class KString implements K, Statement, Expression {
11881188
UUID id;
11891189
Space prefix;
11901190
Markers markers;
@@ -1210,8 +1210,8 @@ public <P> J acceptKotlin(KotlinVisitor<P> v, P p) {
12101210

12111211
@Transient
12121212
@Override
1213-
public CoordinateBuilder.Expression getCoordinates() {
1214-
return new CoordinateBuilder.Expression(this);
1213+
public CoordinateBuilder.Statement getCoordinates() {
1214+
return new CoordinateBuilder.Statement(this);
12151215
}
12161216

12171217
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)

0 commit comments

Comments
 (0)