Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: lib/src/dependency_graph.dart

Issue 1001563003: Fix in multi-package-resolver to support files that will be created later (graph (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/dependency_graph.dart
diff --git a/lib/src/dependency_graph.dart b/lib/src/dependency_graph.dart
index 817a9c073a225aebff2ecf5e61a9d956f8f7a9e0..5d32d72116ecfb15144802a26e6c5b701cb2f5ed 100644
--- a/lib/src/dependency_graph.dart
+++ b/lib/src/dependency_graph.dart
@@ -97,7 +97,9 @@ abstract class SourceNode {
/// parts are excluded from this list.
Iterable<SourceNode> get depsWithoutParts => const [];
- SourceNode(this.uri, this.source);
+ SourceNode(this.uri, this.source) {
+ assert(source != null);
+ }
/// Check for whether the file has changed and, if so, mark [needsRebuild] and
/// [structureChanged] as necessary.
« lib/src/checker/multi_package_resolver.dart ('K') | « lib/src/checker/multi_package_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698