Index: lib/src/server/dependency_graph.dart |
diff --git a/lib/src/server/dependency_graph.dart b/lib/src/server/dependency_graph.dart |
index 4a591bc9b2fdc784a4c7ac419fd81fe158c4046d..71152506d43d491a800d056c16ca15a32b66d80d 100644 |
--- a/lib/src/server/dependency_graph.dart |
+++ b/lib/src/server/dependency_graph.dart |
@@ -459,31 +459,28 @@ rebuild(SourceNode start, bool build(SourceNode node)) { |
.any((i) => apiChangeDetected.contains(i)); |
} |
- visitInPostOrder( |
- start, |
- (n) { |
- if (n.structureChanged) htmlNeedsRebuild = true; |
- if (shouldBuildNode(n)) { |
- var oldHash = n.cachingHash; |
- if (build(n)) apiChangeDetected.add(n); |
- if (oldHash != n.cachingHash) htmlNeedsRebuild = true; |
- } else if (n is DartSourceNode && |
- n.exports.any((e) => apiChangeDetected.contains(e))) { |
- apiChangeDetected.add(n); |
- } |
- n.needsRebuild = false; |
- n.structureChanged = false; |
- if (n is DartSourceNode) { |
- // Note: clearing out flags in the parts could be a problem if someone |
- // tries to use a file both as a part and a library at the same time. |
- // In that case, we might not correctly propagate changes in the |
- // places where it is used as a library. |
- // Technically it's not allowed to have a file as a part and a library |
- // at once, and the analyzer should report an error in that case. |
- n.parts.forEach((p) => p.needsRebuild = p.structureChanged = false); |
- } |
- }, |
- includeParts: false); |
+ visitInPostOrder(start, (n) { |
+ if (n.structureChanged) htmlNeedsRebuild = true; |
+ if (shouldBuildNode(n)) { |
+ var oldHash = n.cachingHash; |
+ if (build(n)) apiChangeDetected.add(n); |
+ if (oldHash != n.cachingHash) htmlNeedsRebuild = true; |
+ } else if (n is DartSourceNode && |
+ n.exports.any((e) => apiChangeDetected.contains(e))) { |
+ apiChangeDetected.add(n); |
+ } |
+ n.needsRebuild = false; |
+ n.structureChanged = false; |
+ if (n is DartSourceNode) { |
+ // Note: clearing out flags in the parts could be a problem if someone |
+ // tries to use a file both as a part and a library at the same time. |
+ // In that case, we might not correctly propagate changes in the |
+ // places where it is used as a library. |
+ // Technically it's not allowed to have a file as a part and a library |
+ // at once, and the analyzer should report an error in that case. |
+ n.parts.forEach((p) => p.needsRebuild = p.structureChanged = false); |
+ } |
+ }, includeParts: false); |
} |
/// Helper that runs [action] on nodes reachable from [start] in pre-order. |