From f23550b0bcb11db79bf5ce79a2e9890143cad15e Mon Sep 17 00:00:00 2001 From: mgroth0 Date: Tue, 24 Dec 2024 12:00:52 -0500 Subject: [PATCH] api dump and format --- ktlint-rule-engine/api/ktlint-rule-engine.api | 5 +++-- .../main/kotlin/com/pinterest/ktlint/rule/engine/api/Code.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ktlint-rule-engine/api/ktlint-rule-engine.api b/ktlint-rule-engine/api/ktlint-rule-engine.api index 0fe4c7d1eb..49de5a54aa 100644 --- a/ktlint-rule-engine/api/ktlint-rule-engine.api +++ b/ktlint-rule-engine/api/ktlint-rule-engine.api @@ -2,6 +2,7 @@ public final class com/pinterest/ktlint/rule/engine/api/Code { public static final field Companion Lcom/pinterest/ktlint/rule/engine/api/Code$Companion; public synthetic fun (Ljava/lang/String;Ljava/lang/String;Ljava/nio/file/Path;ZZLkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun fileNameOrStdin ()Ljava/lang/String; + public final fun filePathOrFileNameOrStdin ()Ljava/lang/String; public final fun filePathOrStdin ()Ljava/lang/String; public final fun getContent ()Ljava/lang/String; public final fun getFileName ()Ljava/lang/String; @@ -13,8 +14,8 @@ public final class com/pinterest/ktlint/rule/engine/api/Code { public final class com/pinterest/ktlint/rule/engine/api/Code$Companion { public final fun fromFile (Ljava/io/File;)Lcom/pinterest/ktlint/rule/engine/api/Code; public final fun fromPath (Ljava/nio/file/Path;)Lcom/pinterest/ktlint/rule/engine/api/Code; - public final fun fromSnippet (Ljava/lang/String;Z)Lcom/pinterest/ktlint/rule/engine/api/Code; - public static synthetic fun fromSnippet$default (Lcom/pinterest/ktlint/rule/engine/api/Code$Companion;Ljava/lang/String;ZILjava/lang/Object;)Lcom/pinterest/ktlint/rule/engine/api/Code; + public final fun fromSnippet (Ljava/lang/String;ZLjava/lang/String;)Lcom/pinterest/ktlint/rule/engine/api/Code; + public static synthetic fun fromSnippet$default (Lcom/pinterest/ktlint/rule/engine/api/Code$Companion;Ljava/lang/String;ZLjava/lang/String;ILjava/lang/Object;)Lcom/pinterest/ktlint/rule/engine/api/Code; public final fun fromSnippetWithPath (Ljava/lang/String;Ljava/nio/file/Path;)Lcom/pinterest/ktlint/rule/engine/api/Code; public static synthetic fun fromSnippetWithPath$default (Lcom/pinterest/ktlint/rule/engine/api/Code$Companion;Ljava/lang/String;Ljava/nio/file/Path;ILjava/lang/Object;)Lcom/pinterest/ktlint/rule/engine/api/Code; public final fun fromStdin ()Lcom/pinterest/ktlint/rule/engine/api/Code; diff --git a/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/Code.kt b/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/Code.kt index ab67b068e0..d4a2968580 100644 --- a/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/Code.kt +++ b/ktlint-rule-engine/src/main/kotlin/com/pinterest/ktlint/rule/engine/api/Code.kt @@ -80,7 +80,7 @@ public class Code private constructor( public fun fromSnippet( content: String, script: Boolean = false, - debugFilename: String? = null + debugFilename: String? = null, ): Code = Code( content = content,