Skip to content

Commit

Permalink
Remove HEADER_KEYWORD & IMPL_KEYWORD (#2810)
Browse files Browse the repository at this point in the history
Remove calls to `KtTokens.HEADER_KEYWORD` & `KtTokens.IMPL_KEYWORD`.
These have been removed from Kotlin effective Kotlin 2.1.0-Beta1.
  • Loading branch information
3flex authored Sep 24, 2024
1 parent 57275d6 commit 1c2ec01
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions ktlint-rule-engine-core/api/ktlint-rule-engine-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,9 @@ public final class com/pinterest/ktlint/rule/engine/core/api/ElementType {
public final fun getGT ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getGTEQ ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getHASH ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getHEADER_KEYWORD ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIDENTIFIER ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIF ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIF_KEYWORD ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIMPL_KEYWORD ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIMPORT_ALIAS ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIMPORT_DIRECTIVE ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
public final fun getIMPORT_KEYWORD ()Lorg/jetbrains/kotlin/com/intellij/psi/tree/IElementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ public object ElementType {
public val INFIX_KEYWORD: IElementType = KtTokens.INFIX_KEYWORD
public val CONST_KEYWORD: IElementType = KtTokens.CONST_KEYWORD
public val SUSPEND_KEYWORD: IElementType = KtTokens.SUSPEND_KEYWORD
public val HEADER_KEYWORD: IElementType = KtTokens.HEADER_KEYWORD
public val IMPL_KEYWORD: IElementType = KtTokens.IMPL_KEYWORD
public val EXPECT_KEYWORD: IElementType = KtTokens.EXPECT_KEYWORD
public val ACTUAL_KEYWORD: IElementType = KtTokens.ACTUAL_KEYWORD

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public class ModifierOrderRule : StandardRule("modifier-order") {
OPERATOR_KEYWORD,
DATA_KEYWORD,
// NOINLINE_KEYWORD, CROSSINLINE_KEYWORD, OUT_KEYWORD, IN_KEYWORD, REIFIED_KEYWORD
// HEADER_KEYWORD, IMPL_KEYWORD
)
private val tokenSet = TokenSet.create(*ORDERED_MODIFIERS)
}
Expand Down

0 comments on commit 1c2ec01

Please sign in to comment.