AA: introduce static project structure provider by compiler configuration
Also add standalone mode utils to configure Application/Project environments
This commit is contained in:
committed by
Ilya Kirillov
parent
d219de0f88
commit
26e923e3ae
@@ -0,0 +1,25 @@
|
||||
// FILE: main.kt
|
||||
|
||||
package test.pkg
|
||||
|
||||
import test.pkg.ColorSpace.Companion.MaxId
|
||||
import test.pkg.ColorSpace.Companion.Min<caret>Id
|
||||
|
||||
annotation class IntRange(val from: Long, val to: Long)
|
||||
|
||||
private fun isSrgb(
|
||||
@IntRange(from = MinId.toLong(), to = MaxId.toLong()) id: Int
|
||||
): Boolean {
|
||||
return if (id == 0) true else false
|
||||
}
|
||||
|
||||
// FILE: ColorSpace.kt
|
||||
|
||||
package test.pkg
|
||||
|
||||
abstract class ColorSpace {
|
||||
internal companion object {
|
||||
internal const val MinId = -1
|
||||
internal const val MaxId = 63
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in test.pkg.ColorSpace.Companion) internal const val MinId: kotlin.Int
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
annotation class MyAnno
|
||||
|
||||
@<caret>MyAnno
|
||||
class Foo {
|
||||
fun bar(): Int = 42
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in test.MyAnno) constructor()
|
||||
Reference in New Issue
Block a user