[LL FIR] correctly calculate lazy bodies for delegated properties
We should rebind symbols from generated constructions to the original ones as we already did for regular bodies like (PsiRawFirBuilder.bindFunctionTarget). This commit also removed bodies for generated accessors as a bonus ^KT-61491 Fixed
This commit is contained in:
committed by
Space Team
parent
680455b162
commit
38524f6b15
Vendored
+9
-27
@@ -10,9 +10,7 @@ FILE: [ResolvedTo(RAW_FIR)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:Deprecated[Unresolved](LAZY_EXPRESSION) @PROPERTY_DELEGATE_FIELD:Anno[Unresolved](LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(RAW_FIR)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(RAW_FIR)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
IMPORTS:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -26,9 +24,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:Deprecated[Unresolved](LAZY_EXPRESSION) @PROPERTY_DELEGATE_FIELD:Anno[Unresolved](LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(RAW_FIR)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(RAW_FIR)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
COMPILER_REQUIRED_ANNOTATIONS:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -42,9 +38,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[CompilerRequiredAnnotations](String(delegate)) @PROPERTY_DELEGATE_FIELD:Anno[Unresolved](LAZY_EXPRESSION) public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
COMPANION_GENERATION:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -58,9 +52,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[CompilerRequiredAnnotations](String(delegate)) @PROPERTY_DELEGATE_FIELD:Anno[Unresolved](LAZY_EXPRESSION) public? final? [ResolvedTo(COMPANION_GENERATION)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(COMPANION_GENERATION)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(COMPANION_GENERATION)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
SUPER_TYPES:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -74,9 +66,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[CompilerRequiredAnnotations](String(delegate)) @PROPERTY_DELEGATE_FIELD:Anno[Unresolved](LAZY_EXPRESSION) public? final? [ResolvedTo(SUPER_TYPES)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(SUPER_TYPES)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(SUPER_TYPES)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
TYPES:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -90,9 +80,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[Types](String(delegate)) @PROPERTY_DELEGATE_FIELD:R|Anno|[Types](LAZY_EXPRESSION) public? final? [ResolvedTo(TYPES)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public? [ResolvedTo(TYPES)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public? [ResolvedTo(TYPES)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
STATUS:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -106,9 +94,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[Types](String(delegate)) @PROPERTY_DELEGATE_FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public [ResolvedTo(STATUS)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public [ResolvedTo(STATUS)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
EXPECT_ACTUAL_MATCHING:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -122,9 +108,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[Types](String(delegate)) @PROPERTY_DELEGATE_FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
CONTRACTS:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
@@ -138,9 +122,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
}
|
||||
field:@PROPERTY_DELEGATE_FIELD:R|kotlin/Deprecated|[Types](String(delegate)) @PROPERTY_DELEGATE_FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(CONTRACTS)] val memberProperty: <implicit>by LAZY_EXPRESSION
|
||||
public [ResolvedTo(CONTRACTS)] get(): <implicit> {
|
||||
^ D|/memberProperty|.getValue#(Null(null), ::R|/memberProperty|)
|
||||
}
|
||||
public [ResolvedTo(CONTRACTS)] get(): <implicit> { LAZY_BLOCK }
|
||||
|
||||
IMPLICIT_TYPES_BODY_RESOLVE:
|
||||
FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnPropertyDelegate.kt
|
||||
|
||||
Reference in New Issue
Block a user