[FIR] Add flag to disable transformers required only for plugins

This commit is contained in:
Dmitriy Novozhilov
2020-08-14 15:37:05 +03:00
parent 53ad502d2a
commit 41ba9b0a2d
4 changed files with 26 additions and 16 deletions
@@ -5,19 +5,19 @@
package org.jetbrains.kotlin.fir.declarations
enum class FirResolvePhase {
RAW_FIR,
ANNOTATIONS_FOR_PLUGINS, // plugin phase
CLASS_GENERATION, // plugin phase
enum class FirResolvePhase(val pluginPhase: Boolean = false, val noProcessor: Boolean = false) {
RAW_FIR(noProcessor = true),
ANNOTATIONS_FOR_PLUGINS(pluginPhase = true),
CLASS_GENERATION(pluginPhase = true),
IMPORTS,
SUPER_TYPES,
SEALED_CLASS_INHERITORS,
TYPES,
ARGUMENTS_OF_PLUGIN_ANNOTATIONS, // plugin phase
EXTENSION_STATUS_UPDATE, // plugin phase
ARGUMENTS_OF_PLUGIN_ANNOTATIONS(pluginPhase = true),
EXTENSION_STATUS_UPDATE(pluginPhase = true),
STATUS,
CONTRACTS,
NEW_MEMBERS_GENERATION, // plugin phase
NEW_MEMBERS_GENERATION(pluginPhase = true),
IMPLICIT_TYPES_BODY_RESOLVE,
BODY_RESOLVE;