| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| index 8287ea5c92fc04ed04baf9bb0f6bbed330c41f11..4976d2f93646b04758391369b5b362884c6bfef7 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -519,15 +519,17 @@ public class DartCompiler {
|
|
|
| // Parse units that are out-of-date with respect to their dependencies.
|
| for (DartUnit unit : lib.getUnits()) {
|
| - String relPath = unit.getSource().getRelativePath();
|
| - LibraryDeps.Source source = deps.getSource(relPath);
|
| - if (isUnitOutOfDate(lib, source)) {
|
| - filesHaveChanged = true;
|
| - DartSource dartSrc = lib.getSource().getSourceFor(relPath);
|
| - if (dartSrc != null && dartSrc.exists()) {
|
| - unit = parse(dartSrc, lib.getPrefixes(), false);
|
| - if (unit != null) {
|
| - lib.putUnit(unit);
|
| + if (unit.isDiet()) {
|
| + String relPath = unit.getSource().getRelativePath();
|
| + LibraryDeps.Source source = deps.getSource(relPath);
|
| + if (isUnitOutOfDate(lib, source)) {
|
| + filesHaveChanged = true;
|
| + DartSource dartSrc = lib.getSource().getSourceFor(relPath);
|
| + if (dartSrc != null && dartSrc.exists()) {
|
| + unit = parse(dartSrc, lib.getPrefixes(), false);
|
| + if (unit != null) {
|
| + lib.putUnit(unit);
|
| + }
|
| }
|
| }
|
| }
|
|
|