[K2] Create and add EvaluatedConstTracker in configuration

This commit is contained in:
Ivan Kylchik
2023-04-06 11:06:21 +02:00
committed by Space Team
parent 37c3dff0c5
commit 0b70b7904d
13 changed files with 73 additions and 22 deletions
@@ -73,6 +73,15 @@ public class CompilerConfiguration {
map.put(key.ideaKey, value);
}
public <T> T putIfAbsent(@NotNull CompilerConfigurationKey<T> key, @NotNull T value) {
T data = get(key);
if (data != null) return data;
checkReadOnly();
put(key, value);
return value;
}
public <T> void putIfNotNull(@NotNull CompilerConfigurationKey<T> key, @Nullable T value) {
if (value != null) {
put(key, value);