[FIR] FirSyntheticProperty: drop resolveState

Such properties should be stateless and just wrap over accessories.
Logic inside contract transformer is unreachable because we do not
allow lazy resolution for synthetic properties.

^KT-61990
This commit is contained in:
Dmitrii Gridin
2023-10-12 20:42:03 +02:00
committed by Space Team
parent bb40ce0bfc
commit b8000d611a
12 changed files with 103 additions and 124 deletions
@@ -1,5 +1,5 @@
RAW_FIR:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -43,7 +43,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
IMPORTS:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -87,7 +87,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
COMPILER_REQUIRED_ANNOTATIONS:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -131,7 +131,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
COMPANION_GENERATION:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -175,7 +175,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
SUPER_TYPES:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -219,7 +219,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
TYPES:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -263,7 +263,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
STATUS:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -307,7 +307,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
EXPECT_ACTUAL_MATCHING:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -351,7 +351,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
ARGUMENTS_OF_ANNOTATIONS:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -395,7 +395,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
CONTRACTS:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -439,7 +439,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
IMPLICIT_TYPES_BODY_RESOLVE:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -483,7 +483,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
ANNOTATIONS_ARGUMENTS_MAPPING:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }
@@ -527,7 +527,7 @@ FILE: [ResolvedTo(IMPORTS)] Derived.kt
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
BODY_RESOLVE:
TARGET: public open override [ResolvedTo(STATUS)] var something: R|kotlin/String|
TARGET: public open override [<synthetic> STATUS] var something: R|kotlin/String|
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] get(): R|kotlin/String| { LAZY_BLOCK }
@R|Anno|[Types](LAZY_EXPRESSION) public [<synthetic> ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] s: R|@R|Anno|(<strcat>(String(setter type ), propertyFromSetter#)) kotlin/String|): <implicit> { LAZY_BLOCK }