Got rid of the LAZY flag

This commit is contained in:
Andrey Breslav
2015-01-23 19:37:02 +03:00
parent d466533ef2
commit d310b0c99d
2 changed files with 2 additions and 8 deletions
@@ -247,7 +247,7 @@ public class CliLightClassGenerationSupport extends LightClassGenerationSupport
public <K, V> V get(ReadOnlySlice<K, V> slice, K key) {
V value = super.get(slice, key);
if (value == null && TopDownAnalysisParameters.LAZY) {
if (value == null) {
if (BindingContext.FUNCTION == slice || BindingContext.VARIABLE == slice) {
if (key instanceof JetDeclaration) {
JetDeclaration jetDeclaration = (JetDeclaration) key;
@@ -28,12 +28,6 @@ import org.jetbrains.kotlin.storage.StorageManager;
* Various junk that cannot be placed into context (yet).
*/
public class TopDownAnalysisParameters extends LazinessToken implements GlobalContext {
@Deprecated
public static final boolean LAZY;
static {
LAZY = !"false".equals(System.getProperty("lazy.tda"));
}
@NotNull
public static TopDownAnalysisParameters create(
@@ -44,7 +38,7 @@ public class TopDownAnalysisParameters extends LazinessToken implements GlobalCo
boolean declaredLocally
) {
return new TopDownAnalysisParameters(storageManager, exceptionTracker, analyzeCompletely, analyzingBootstrapLibrary,
declaredLocally, LAZY);
declaredLocally, true);
}
@NotNull