Skip to content

Commit

Permalink
Remove redundant NESTED_CLASS_IN_EXTERNAL_INTERFACE suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky authored May 18, 2024
1 parent 935bd82 commit f416830
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/converter/plugins/StringUnionTypePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ val ${key}: ${name}
.join("\n")

const declaration = `
@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface ${name} {
companion object {
Expand Down
1 change: 0 additions & 1 deletion src/converter/plugins/convertEnumDeclaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const convertEnumDeclaration = createSimplePlugin((node, context, render)
.join("\n")

return `
@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
sealed ${externalModifier}interface ${name} {
companion object {
${members}
Expand Down
1 change: 0 additions & 1 deletion test/functional/base/generated/declarationMerging/enums.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package sandbox.base.declarationMerging



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
sealed external interface ExampleEnum {
companion object {
val a: ExampleEnum
Expand Down
5 changes: 0 additions & 5 deletions test/functional/base/generated/function/stringUnionParam.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ external fun getGPUInfo4(infoType: (((GetGPUInfo4InfoType)))): Any?

external fun setVibrancy(type: SetVibrancyType?): Unit

@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface GetGPUInfoInfoType {
companion object {
Expand All @@ -32,7 +31,6 @@ val complete: GetGPUInfoInfoType



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface GetGPUInfo2InfoType {
companion object {
Expand All @@ -45,7 +43,6 @@ val complete: GetGPUInfo2InfoType



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface GetGPUInfo3InfoType {
companion object {
Expand All @@ -58,7 +55,6 @@ val complete: GetGPUInfo3InfoType



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface GetGPUInfo4InfoType {
companion object {
Expand All @@ -71,7 +67,6 @@ val complete: GetGPUInfo4InfoType



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface SetVibrancyType {
companion object {
Expand Down
1 change: 0 additions & 1 deletion test/functional/base/generated/mappedType/simple.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package sandbox.base.mappedType



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface Keys {
companion object {
Expand Down
2 changes: 0 additions & 2 deletions test/functional/base/generated/union/stringEnum.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ package sandbox.base.union



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface FormEncType {
companion object {
Expand All @@ -24,7 +23,6 @@ val multipartFormData: FormEncType

external fun switcher(): SwitcherResult

@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface SwitcherResult {
companion object {
Expand Down
1 change: 0 additions & 1 deletion test/functional/bundle/generated/customBundle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ external fun myFunction2(firstParam: String, secondParam: Double): Unit

external fun myFunction1(firstParam: String, secondParam: Double): Unit

@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
@seskar.js.JsVirtual
sealed external interface MyFunction3SecondParam {
companion object {
Expand Down
1 change: 0 additions & 1 deletion test/functional/top-level/generated/MyEnum.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package sandbox.top.level



@Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
sealed external interface MyEnum {
companion object {
val FIRST: MyEnum
Expand Down

0 comments on commit f416830

Please sign in to comment.