jvmName should be applicable to FILE.
Get jvmName from Annotations (JetFile is not Annotated, since it is a part of AST hierarchy, and there is no corresponding descriptor; however, there is a standard way to obtain Annotations for JetFile, which is exactly what we need, and what Annotated provides).
This commit is contained in:
committed by
Michael Bogdanov
parent
b1b845d44d
commit
0fa6e0730a
@@ -45,7 +45,7 @@ public annotation class JvmStatic
|
||||
* for more information.
|
||||
* @property name the name of the element.
|
||||
*/
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FILE)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
@MustBeDocumented
|
||||
public annotation class JvmName(public val name: String)
|
||||
|
||||
Reference in New Issue
Block a user