You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/frontend/src/org/jetbrains/kotlin/script/scriptAnnotationsPreprocessing.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,12 @@ internal class KtAnnotationWrapper(val psi: KtAnnotationEntry, val targetClass:
48
48
// TODO: consider inspecting `trace` to find diagnostics reported during the computation (such as division by zero, integer overflow, invalid annotation parameters etc.)
49
49
val argName = arg.getArgumentName()?.asName?.toString()
50
50
// TODO: consider reusing arguments mapping logic from compiler code
51
+
// TODO: find out how to properly report problems from here (now using bogus arg names as an indicator)
51
52
val paramName =when {
52
53
argName ==null&&!namedStarted && targetAnnParams ==null->"$"// TODO: using invalid name here. Drop when annotation constructors will be accessible (se above)
53
-
argName ==null&&!namedStarted -> targetAnnParams?.get(i)?.name ?:throwIllegalArgumentException("Unnamed argument for $name at $i")
54
-
argName ==null&& namedStarted ->throwIllegalArgumentException("Invalid argument sequence for $name at arg $i")
// TODO: the functionality with checking annParams size is here only to workaround missing access to constructors in annotations. Drop as soon as possible (see above)
0 commit comments