[K2] Add new resolve phase CONSTANT_EVALUATION

During this phase, the compiler will evaluate initializers of
const properties and defaults of annotation's constructor.
Evaluation results will be stored in corresponding attributes.

#KT-64151
This commit is contained in:
Ivan Kylchik
2024-02-29 13:25:43 +01:00
committed by Space Team
parent b157a8eae5
commit ada47eb110
7 changed files with 74 additions and 0 deletions
@@ -178,6 +178,11 @@ enum class FirResolvePhase(val noProcessor: Boolean = false) {
*/
IMPLICIT_TYPES_BODY_RESOLVE,
/**
* The compiler evaluates expressions that are used as initializers for const properties and defaults of annotation's constructor.
*/
CONSTANT_EVALUATION,
/**
* The compiler resolves arguments of annotations in declaration headers.
*/