Analysis API: move testdata to corresponding components folders
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationInner(val value: Annotation)
|
||||
|
||||
@AnnotationInner(<expr>Annotation(strings = arrayOf("v1", "v2"))</expr>)
|
||||
class C
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
expression: Annotation(strings = arrayOf("v1", "v2"))
|
||||
constant_value: KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationInner(val value: Annotation)
|
||||
|
||||
@AnnotationInner(<expr>Annotation(strings = ["v1", "v2"])</expr>)
|
||||
class C
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
expression: Annotation(strings = ["v1", "v2"])
|
||||
constant_value: KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationInner(val value: Annotation)
|
||||
|
||||
@AnnotationInner(<expr>Annotation(*["v1", "v2"])</expr>)
|
||||
class C
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
expression: Annotation(*["v1", "v2"])
|
||||
constant_value: KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationArray(vararg val annos: Annotation)
|
||||
|
||||
@AnnotationArray(annos = <expr>arrayOf(Annotation("v1", "v2"), Annotation(strings = arrayOf("v3", "v4")))</expr>)
|
||||
class C
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
expression: arrayOf(Annotation("v1", "v2"), Annotation(strings = arrayOf("v3", "v4")))
|
||||
constant_value: KtArrayConstantValue [
|
||||
KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v3)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v4)
|
||||
]))
|
||||
]
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationArray(vararg val annos: Annotation)
|
||||
|
||||
@AnnotationArray(annos = <expr>[Annotation("v1", "v2"), Annotation(strings = ["v3", "v4"])]</expr>)
|
||||
class C
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
expression: [Annotation("v1", "v2"), Annotation(strings = ["v3", "v4"])]
|
||||
constant_value: KtArrayConstantValue [
|
||||
KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v3)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v4)
|
||||
]))
|
||||
]
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationInner(val value: Annotation)
|
||||
|
||||
@AnnotationInner(<expr>Annotation("v1")</expr>)
|
||||
class C
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
expression: Annotation("v1")
|
||||
constant_value: KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
]))
|
||||
constant: null
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
annotation class Annotation(vararg val strings: String)
|
||||
|
||||
annotation class AnnotationInner(val value: Annotation)
|
||||
|
||||
@AnnotationInner(<expr>Annotation("v1", "v2")</expr>)
|
||||
class C
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
expression: Annotation("v1", "v2")
|
||||
constant_value: KtAnnotationConstantValue(Annotation, (strings = KtArrayConstantValue [
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v1)
|
||||
KtLiteralConstantValue(constantValueKind=String, value=v2)
|
||||
]))
|
||||
constant: null
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
enum class Color {
|
||||
R,
|
||||
G,
|
||||
B
|
||||
}
|
||||
|
||||
annotation class Annotation(val color : Color)
|
||||
|
||||
@Annotation(<expr>Color.R</expr>)
|
||||
class C
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expression: Color.R
|
||||
constant_value: KtEnumEntryConstantValue(/Color.R)
|
||||
constant: null
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
val p : Byte = <expr>42</expr>
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Byte.txt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=Byte, value=42)
|
||||
constant: 42
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42 / 0
|
||||
constant_value: KtErrorValue(Division by zero)
|
||||
constant: null
|
||||
+1
@@ -0,0 +1 @@
|
||||
val p = <expr>42 / 0</expr>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42 / 0
|
||||
constant_value: KtErrorValue(/ by zero)
|
||||
constant: null
|
||||
+1
@@ -0,0 +1 @@
|
||||
val p : Double = <expr>3.14</expr>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expression: 3.14
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=Double, value=3.14)
|
||||
constant: 3.14
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Float.kt
Vendored
+1
@@ -0,0 +1 @@
|
||||
val p = <expr>3.14f</expr>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expression: 3.14f
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=Float, value=3.14)
|
||||
constant: 3.14
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
val p : Int = <expr>42</expr>
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=Int, value=42)
|
||||
constant: 42
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
val p : Long = <expr>42</expr>
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Long.txt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=Long, value=42)
|
||||
constant: 42
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
val p : UInt = <expr>42u</expr>
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_UInt.txt
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expression: 42u
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=UInt, value=42)
|
||||
constant: 42
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
annotation class Annotation(vararg val values: String)
|
||||
|
||||
@Annotation(<expr>"42"</expr>)
|
||||
class C
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
expression: "42"
|
||||
constant_value: KtLiteralConstantValue(constantValueKind=String, value=42)
|
||||
constant: 42
|
||||
Reference in New Issue
Block a user