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

Unified Diff: lib/src/server/server.dart

Issue 1749213006: use Source.isInSystemLibrary (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 4 years, 10 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
« no previous file with comments | « lib/src/compiler.dart ('k') | test/transformer_e2e_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/server/server.dart
diff --git a/lib/src/server/server.dart b/lib/src/server/server.dart
index c0ce18bd40ad4105b367771d6a4da1e9cf868953..b23b8f000263902d1786770f9372603ab02d5186 100644
--- a/lib/src/server/server.dart
+++ b/lib/src/server/server.dart
@@ -149,7 +149,7 @@ class ServerCompiler extends AbstractCompiler {
context.applyChanges(new ChangeSet()..changedSource(source));
var entryUnit = context.resolveCompilationUnit2(source, source);
var lib = entryUnit.element.enclosingElement;
- if (!options.checkSdk && lib.source.uri.scheme == 'dart') return;
+ if (!options.checkSdk && lib.source.isInSystemLibrary) return;
var current = node.info;
if (current != null) {
assert(current.library == lib);
« no previous file with comments | « lib/src/compiler.dart ('k') | test/transformer_e2e_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698