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:
Dmitry Petrov
2015-08-27 11:14:10 +03:00
committed by Michael Bogdanov
parent b1b845d44d
commit 0fa6e0730a
2 changed files with 18 additions and 6 deletions
@@ -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)