Skip to content

Commit

Permalink
add clone method to KotlinParser.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 committed Oct 9, 2023
1 parent c83e881 commit 15fe58b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/openrewrite/kotlin/KotlinParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ public KotlinParser build() {
public String getDslName() {
return "kotlin";
}

public KotlinParser.Builder clone() {
KotlinParser.Builder clone = (KotlinParser.Builder)super.clone();
clone.typeCache = this.typeCache.clone();
return clone;
}
}

public CompiledSource parse(List<Parser.Input> sources, Disposable disposable, ExecutionContext ctx) {
Expand Down

0 comments on commit 15fe58b

Please sign in to comment.