aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-14 17:41:22 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-14 17:41:22 -0700
commitb4692c9a7808caabdf474c2acc6d6d3754e5e2e4 (patch)
treea824991e12daf2e96be411926b82a123ccb2672b /lib
parent9958652d92ee074fbd71a5d75a56341518cc0f99 (diff)
downloadzig-b4692c9a7808caabdf474c2acc6d6d3754e5e2e4.tar.gz
zig-b4692c9a7808caabdf474c2acc6d6d3754e5e2e4.zip
stage2: improve Decl dependency management
* Do not report export collision errors until the very end, because it is possible, during an update, for a new export to be added before an old one is semantically analyzed to be deleted. In such a case there should be no compile error. - Likewise we defer emitting exports until the end when we know for sure what will happen. * Sema: Fix not adding a Decl dependency on imported files. * Sema: Properly add Decl dependencies for all identifier and namespace lookups. * After semantic analysis for a Decl, if it is still marked as `in_progress`, change it to `dependency_failure` because if the Decl itself failed, it would have already been changed during the call to add the compile error.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions