[LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
This commit is contained in:
committed by
Space Team
parent
aef5290210
commit
33e6a85a2d
+1
@@ -0,0 +1 @@
|
||||
<expr>val p: String by</expr>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
KT element: KtProperty
|
||||
FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val p: R|kotlin/String|by ERROR_EXPR(Should have delegate)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| {
|
||||
^ D|/p|.<Unresolved name: getValue>#(Null(null), ::R|/p|)
|
||||
}
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] delegatedProperty.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val p: R|kotlin/String|by ERROR_EXPR(Should have delegate)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| {
|
||||
^ D|/p|.<Unresolved name: getValue>#(Null(null), ::R|/p|)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class SomeClass {
|
||||
val prop = "abc"
|
||||
}
|
||||
class SomeClass {
|
||||
<expr>fun foo() {}</expr>
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
KT element: KtNamedFunction
|
||||
FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] duplicatedClasses.kt
|
||||
public final [ResolvedTo(STATUS)] class SomeClass : R|kotlin/Any| {
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] constructor(): R|SomeClass| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(STATUS)] val prop: <implicit> = LAZY_EXPRESSION
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] get(): <implicit>
|
||||
|
||||
}
|
||||
public final [ResolvedTo(STATUS)] class SomeClass : R|kotlin/Any| {
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] constructor(): R|SomeClass| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
class SomeClass {
|
||||
val prop = "abc"
|
||||
}
|
||||
class SomeClass {
|
||||
fun foo(<expr>p: Int</expr>) {}
|
||||
}
|
||||
analysis/low-level-api-fir/testData/getOrBuildFir/invalidCode/duplicatedClassesFunctionParameter.txt
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
KT element: KtParameter
|
||||
FIR element: FirValueParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
[ResolvedTo(BODY_RESOLVE)] p: R|kotlin/Int|
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] duplicatedClassesFunctionParameter.kt
|
||||
public final [ResolvedTo(STATUS)] class SomeClass : R|kotlin/Any| {
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] constructor(): R|SomeClass| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(STATUS)] val prop: <implicit> = LAZY_EXPRESSION
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] get(): <implicit>
|
||||
|
||||
}
|
||||
public final [ResolvedTo(STATUS)] class SomeClass : R|kotlin/Any| {
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=SomeClass] constructor(): R|SomeClass| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
fun main() {
|
||||
println("Hello, Kotlin/Native!")
|
||||
}
|
||||
|
||||
expect fun f()
|
||||
|
||||
fun test() {
|
||||
}
|
||||
|
||||
actual fun f() { <expr>println("Hello")</expr> }
|
||||
|
||||
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
KT element: KtCallExpression
|
||||
FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
<Unresolved name: println>#(String(Hello))
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] expectAndActualInTheSameFile.kt
|
||||
public? final? [ResolvedTo(RAW_FIR)] fun main(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
public? final? expect [ResolvedTo(RAW_FIR)] fun f(): R|kotlin/Unit|
|
||||
public? final? [ResolvedTo(RAW_FIR)] fun test(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
public final actual [ResolvedTo(BODY_RESOLVE)] [ExpectForActualAttributeKey={}] fun f(): R|kotlin/Unit| {
|
||||
<Unresolved name: println>#(String(Hello))
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
@<expr>Volatile</expr>
|
||||
private var
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
KT element: KtConstructorCalleeExpression
|
||||
FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@<ERROR TYPE REF: Symbol not found for Volatile>[Types]()
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] incompletePropertyWithAnnotation.kt
|
||||
@<ERROR TYPE REF: Symbol not found for Volatile>[Types]() private final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] var <no name provided>: <ERROR TYPE REF: Cannot infer variable type without initializer / getter / delegate>
|
||||
private [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): <ERROR TYPE REF: Cannot infer variable type without initializer / getter / delegate>
|
||||
private [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: <ERROR TYPE REF: Cannot infer variable type without initializer / getter / delegate>): R|kotlin/Unit|
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
val anyClass = Any()
|
||||
funOne(<expr>anyClass</expr>.class)
|
||||
}
|
||||
|
||||
fun funOne(x: Any): Unit {}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
KT element: KtNameReferenceExpression
|
||||
FIR element: FirPropertyAccessExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
R|<local>/anyClass|
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] javaClassLiteral.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun main([ResolvedTo(BODY_RESOLVE)] args: R|kotlin/Array<kotlin/String>|): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval anyClass: R|kotlin/Any| = R|kotlin/Any.Any|()
|
||||
R|/funOne|(ERROR_EXPR(Incorrect selector expression)R|<local>/anyClass|)
|
||||
}
|
||||
public final [ResolvedTo(CONTRACTS)] fun funOne([ResolvedTo(CONTRACTS)] x: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
}
|
||||
analysis/low-level-api-fir/testData/getOrBuildFir/invalidCode/missedTypeArgumentsInAnnotationCall.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// LOOK_UP_FOR_ELEMENT_OF_TYPE: org.jetbrains.kotlin.psi.KtNameReferenceExpression
|
||||
package usage
|
||||
|
||||
annotation class B<T>
|
||||
|
||||
@<expr>B</expr>
|
||||
class A
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
KT element: KtNameReferenceExpression
|
||||
FIR element: FirErrorNamedReferenceImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
<Wrong number of type arguments>#
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] missedTypeArgumentsInAnnotationCall.kt
|
||||
package usage
|
||||
|
||||
public? final? [ResolvedTo(RAW_FIR)] annotation class B<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Annotation| {
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor<[ResolvedTo(RAW_FIR)] T>(): R|usage/B<T>| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
}
|
||||
@<ERROR TYPE REF: Wrong number of type arguments>[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] class A : R|kotlin/Any| {
|
||||
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|usage/A| {
|
||||
LAZY_super<R|kotlin/Any|>
|
||||
}
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
annotation class JsQualifier : kotlin.Annotation {
|
||||
public constructor JsQualifier(<expr>value</expr>: kotlin.String)
|
||||
|
||||
public final val value: kotlin.String { get; }
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
KT element: KtDeclarationModifierList
|
||||
FIR element: FirDanglingModifierListImpl
|
||||
FIR source kind: DanglingModifierList
|
||||
|
||||
FIR element rendered:
|
||||
<DANGLING MODIFIER: Top level declaration expected>
|
||||
|
||||
FIR FILE:
|
||||
FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] annotation class JsQualifier : R|kotlin/Annotation|, R|kotlin/Annotation| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=JsQualifier] constructor(): R|JsQualifier| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(STATUS)] val value: R|kotlin/String|
|
||||
public [ResolvedTo(STATUS)] [ContainingClassKey=JsQualifier] get(): R|kotlin/String|
|
||||
|
||||
public final [ResolvedTo(STATUS)] fun <no name provided>(): R|kotlin/Unit| { LAZY_BLOCK }
|
||||
|
||||
<DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
Reference in New Issue
Block a user