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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java

Issue 10545044: Fix DartCompilerUtilies to bypass analysis server in case editor buffer is dirty. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java (revision 8365)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java (working copy)
@@ -839,7 +839,8 @@
long start = System.currentTimeMillis();
LibraryUnit unit;
- if (DartCoreDebug.ANALYSIS_SERVER && parsedUnits == null) {
+ if (DartCoreDebug.ANALYSIS_SERVER && parsedUnits == null
+ && !(librarySource instanceof LibraryWithSuppliedSources)) {
// Resolve dart:<libname> to file URI before calling AnalysisServer
EditorLibraryManager manager = SystemLibraryManagerProvider.getSystemLibraryManager();
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/NameOccurrencesFinderTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698