33a59ff5fe
In the most places in frontend identifier is stored in Name class, was in String. Name has two advantages over String: * validation: you cannot accidentally create identifier with dot, for example * readability: if you see String, you don't now whether it is identifier, fq name, jvm class name or something else Name's disadvantage is (small) performance overhead. We have no value types in JVM.
21 lines
584 B
Kotlin
21 lines
584 B
Kotlin
package rendererTest
|
|
|
|
public val pub = ""
|
|
|
|
internal var int : String = ""
|
|
|
|
val int2 : Int = 5
|
|
|
|
private var private = 5
|
|
|
|
public val Int.ext : Int
|
|
get() {}
|
|
|
|
//package rendererTest defined in root package
|
|
//public final val pub : jet.String defined in rendererTest
|
|
//internal final var int : jet.String defined in rendererTest
|
|
//internal final val int2 : jet.Int defined in rendererTest
|
|
//private final var private : jet.Int defined in rendererTest
|
|
//public final val jet.Int.ext : jet.Int defined in rendererTest
|
|
//public final fun jet.Int.<get-ext>() : jet.Int defined in rendererTest
|