Add script flag to kotlin.Metadata

This will allow to distinguish compiled scripts from ordinary classes in the
compiler, reflection, IDE, etc.

 #KT-13382 Fixed
This commit is contained in:
Alexander Udalov
2017-01-09 12:21:59 +03:00
parent 7c6d5c825c
commit e860d620c6
6 changed files with 20 additions and 11 deletions
+1
View File
@@ -61,6 +61,7 @@ internal annotation class Metadata(
*
* 0 - this is a multi-file class facade or part, compiled with `-Xmultifile-parts-inherit`.
* 1 - this class file is compiled by a pre-release version of Kotlin and is not visible to release versions.
* 2 - this class file is a compiled Kotlin script source file (.kts).
*/
val xi: Int = 0
)