LTDA: Add the temp ability to build with eager resolve

Compiler should be executed with -Dlazy.tda=false parameter

REPL won't work with this option
This commit is contained in:
Nikolay Krasko
2014-11-18 16:19:27 +03:00
parent 1a894c7e5c
commit 8cfdcd319b
9 changed files with 165 additions and 52 deletions
@@ -258,7 +258,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) {
if (value == null && TopDownAnalysisParameters.LAZY) {
if (BindingContext.FUNCTION == slice || BindingContext.VARIABLE == slice) {
if (key instanceof JetDeclaration) {
JetDeclaration jetDeclaration = (JetDeclaration) key;