Skip to content

Commit c8a68bc

Browse files
authored
Fix ksp crash on unknown annotation (#290)
* Don't throw on unknown annotations * Cleanup import
1 parent b4467d2 commit c8a68bc

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

  • kt/entry-generation
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
package godot.entrygenerator.model
22

3-
import godot.entrygenerator.model.GodotJvmSourceElement
4-
53
sealed interface GodotAnnotation : GodotJvmSourceElement

kt/entry-generation/godot-kotlin-symbol-processor/src/main/kotlin/godot/annotation/processor/ext/ksAnnotationExt.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ fun KSAnnotation.mapToAnnotation(parentDeclaration: KSDeclaration): GodotAnnotat
215215
global
216216
)
217217
}
218-
else -> throw IllegalArgumentException(
219-
"Unknown annotation: ${this.fqNameUnsafe}"
220-
)
218+
else -> null
221219
}
222220
}

0 commit comments

Comments
 (0)