[FIR] FirRenderer: render annotation resolve phase as well
^KT-56543
This commit is contained in:
committed by
Space Team
parent
210e8750f4
commit
03eab387c0
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/Suppress|(names = vararg(String()))
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
analysis/low-level-api-fir/testdata/getOrBuildFir/annotations/annotationApplicationWithArguments.txt
Vendored
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/Suppress|(names = vararg(String()))
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/Suppress|(names = vararg(String()))
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/Suppress|(names = vararg(String()))
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@R|kotlin/Suppress|(names = vararg(String()))
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirAnnotationCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
@FILE:R|kotlin/Suppress|(names = vararg(String()))
|
||||
@FILE:R|kotlin/Suppress|[Types](names = vararg(String()))
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
lval a: <ERROR TYPE REF: Unresolved name: component1> = R|<local>/<destruct>|.<Unresolved name: component1>#()
|
||||
[ResolvedTo(BODY_RESOLVE)] lval a: <ERROR TYPE REF: Unresolved name: component1> = R|<local>/<destruct>|.<Unresolved name: component1>#()
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
lval a: R|kotlin/Int| = R|<local>/<destruct>|.R|SubstitutionOverride<kotlin/Pair.component1: R|kotlin/Int|>|()
|
||||
[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|<local>/<destruct>|.R|SubstitutionOverride<kotlin/Pair.component1: R|kotlin/Int|>|()
|
||||
+1
-1
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
|
||||
analysis/low-level-api-fir/testdata/getOrBuildFir/declarations/propertyDelegate.out_of_src_roots.txt
Vendored
+1
-1
@@ -3,7 +3,7 @@ FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
<Unresolved name: lazy>#(<L> = lazy@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
<Unresolved name: lazy>#(<L> = [ResolvedTo(BODY_RESOLVE)] lazy@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
^ Int(1)
|
||||
}
|
||||
)
|
||||
+1
-1
@@ -3,7 +3,7 @@ FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
R|kotlin/lazy|<R|kotlin/Int|>(<L> = lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
|
||||
R|kotlin/lazy|<R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
|
||||
^ Int(1)
|
||||
}
|
||||
)
|
||||
+1
-1
@@ -3,7 +3,7 @@ FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
<Unresolved name: lazy>#(<L> = lazy@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
<Unresolved name: lazy>#(<L> = [ResolvedTo(BODY_RESOLVE)] lazy@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
^ Int(1)
|
||||
}
|
||||
)
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ FIR element: FirFunctionCallImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
R|kotlin/lazy|<R|kotlin/Int|>(<L> = lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
|
||||
R|kotlin/lazy|<R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] lazy@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
|
||||
^ Int(1)
|
||||
}
|
||||
)
|
||||
+1
-1
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
while(R|<local>/<iterator>|.R|SubstitutionOverride<kotlin/collections/IntIterator.hasNext: R|kotlin/Boolean|>|()) {
|
||||
lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
|
||||
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
|
||||
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/Int| = R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()
|
||||
Vendored
+1
-1
@@ -3,6 +3,6 @@ FIR element: FirAnonymousFunctionExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
run@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
[ResolvedTo(BODY_RESOLVE)] run@fun <anonymous>(): R|kotlin/Int| <inline=Unknown> {
|
||||
^ Int(1)
|
||||
}
|
||||
+1
-1
@@ -3,6 +3,6 @@ FIR element: FirAnonymousFunctionExpressionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
run@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
[ResolvedTo(BODY_RESOLVE)] run@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
^ Int(1)
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ FIR element rendered:
|
||||
try {
|
||||
Int(1)
|
||||
}
|
||||
catch (e: R|kotlin/Throwable|) {
|
||||
catch ([ResolvedTo(BODY_RESOLVE)] e: R|kotlin/Throwable|) {
|
||||
}
|
||||
finally {
|
||||
}
|
||||
+3
-3
@@ -3,7 +3,7 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final val p: R|kotlin/String|by ERROR_EXPR(Should have delegate)
|
||||
public get(): R|kotlin/String| {
|
||||
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|)
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirTypeParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
T
|
||||
[ResolvedTo(BODY_RESOLVE)] T
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirEnumEntryImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final static enum entry ENTRY: R|X|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry ENTRY: R|X|
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirTypeParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
T
|
||||
[ResolvedTo(BODY_RESOLVE)] T
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirValueParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
x: R|kotlin/Int|
|
||||
[ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|
|
||||
+2
-2
@@ -3,6 +3,6 @@ FIR element: FirPropertyAccessorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public get(): R|kotlin/String| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| {
|
||||
^ String()
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -3,11 +3,11 @@ FIR element: FirRegularClassImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
local final class X : R|kotlin/Any| {
|
||||
public constructor(): R|X| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun y(): R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/String|
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,6 +3,6 @@ FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
local final fun x(): R|kotlin/String| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/String| {
|
||||
^x String()
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
lval x: R|kotlin/String| = String()
|
||||
[ResolvedTo(BODY_RESOLVE)] lval x: R|kotlin/String| = String()
|
||||
+2
-2
@@ -3,6 +3,6 @@ FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final fun x(): R|kotlin/String| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/String| {
|
||||
^x String()
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,5 +3,5 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final val x: R|kotlin/String| = String()
|
||||
public get(): R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = String()
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirTypeAliasImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final typealias Str = R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] typealias Str = R|kotlin/String|
|
||||
+4
-4
@@ -3,11 +3,11 @@ FIR element: FirRegularClassImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final class X : R|kotlin/Any| {
|
||||
public constructor(): R|Y.X| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Y.X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun y(): R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/String|
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirValueParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
x: R|kotlin/Int|
|
||||
[ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirValueParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
x: R|kotlin/Int|
|
||||
[ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|
|
||||
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirValueParameterImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
y: R|kotlin/String|
|
||||
[ResolvedTo(BODY_RESOLVE)] y: R|kotlin/String|
|
||||
+2
-2
@@ -3,5 +3,5 @@ FIR element: FirPropertyAccessorImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public set(value: R|kotlin/String|): R|kotlin/Unit| {
|
||||
}
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit| {
|
||||
}
|
||||
+4
-4
@@ -3,11 +3,11 @@ FIR element: FirRegularClassImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final class X : R|kotlin/Any| {
|
||||
public constructor(): R|X| {
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final fun y(): R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/String|
|
||||
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -3,7 +3,7 @@ FIR element: FirSimpleFunctionImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final fun x(): R|kotlin/Unit| {
|
||||
local final fun y(): R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/String|
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -3,5 +3,5 @@ FIR element: FirPropertyImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final val x: R|kotlin/Int| = Int(1)
|
||||
public get(): R|kotlin/Int|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(1)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
Vendored
+1
-1
@@ -3,4 +3,4 @@ FIR element: FirTypeAliasImpl
|
||||
FIR source kind: KtRealSourceElementKind
|
||||
|
||||
FIR element rendered:
|
||||
public final typealias Str = R|kotlin/String|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] typealias Str = R|kotlin/String|
|
||||
Reference in New Issue
Block a user