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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java

Issue 156763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
index 23fcc00f019d8cfdd08da67032ca447f82a1aa4b..c65a65d266c8cd547f718a4f9bbdac12758b2ba2 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java
@@ -317,12 +317,12 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
removeFromParts(source, dartEntry);
dartCopy.invalidateAllResolutionInformation();
mapEntry.setValue(dartCopy);
- WorkManagerPriority priority = WorkManagerPriority.UNKNOWN;
+ SourcePriority priority = SourcePriority.UNKNOWN;
SourceKind kind = dartCopy.getKind();
if (kind == SourceKind.LIBRARY) {
- priority = WorkManagerPriority.LIBRARY;
+ priority = SourcePriority.LIBRARY;
} else if (kind == SourceKind.PART) {
- priority = WorkManagerPriority.NORMAL_PART;
+ priority = SourcePriority.NORMAL_PART;
}
workManager.add(source, priority);
}
@@ -1324,7 +1324,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.setException(thrownException);
cache.put(source, dartCopy);
if (!source.equals(librarySource)) {
- workManager.add(source, WorkManagerPriority.PRIORITY_PART);
+ workManager.add(source, SourcePriority.PRIORITY_PART);
}
if (source.equals(unitSource)) {
unitEntry = dartCopy;
@@ -2440,7 +2440,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
DartEntryImpl dartCopy = dartEntry.getWritableCopy();
dartCopy.invalidateAllResolutionInformation();
mapEntry.setValue(dartCopy);
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
}
}
}
@@ -2468,7 +2468,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
long oldTime = libraryCopy.getModificationTime();
libraryCopy.invalidateAllResolutionInformation();
cache.put(librarySource, libraryCopy);
- workManager.add(librarySource, WorkManagerPriority.LIBRARY);
+ workManager.add(librarySource, SourcePriority.LIBRARY);
if (writer != null) {
writer.println(" Invalidated library source: " + debuggingString(librarySource)
+ " (previously modified at " + oldTime + ")");
@@ -2480,7 +2480,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
oldTime = partCopy.getModificationTime();
if (partEntry != libraryCopy) {
partCopy.removeContainingLibrary(librarySource);
- workManager.add(librarySource, WorkManagerPriority.NORMAL_PART);
+ workManager.add(librarySource, SourcePriority.NORMAL_PART);
}
partCopy.invalidateAllResolutionInformation();
cache.put(partSource, partCopy);
@@ -2590,7 +2590,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
htmlCopy.setValue(HtmlEntry.ANGULAR_COMPONENT, component);
htmlCopy.setState(HtmlEntry.ANGULAR_ERRORS, CacheState.INVALID);
cache.put(templateSource, htmlCopy);
- workManager.add(templateSource, WorkManagerPriority.HTML);
+ workManager.add(templateSource, SourcePriority.HTML);
}
}
}
@@ -2700,7 +2700,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
dartCopy.setModificationTime(sourceTime);
cache.removedAst(source);
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
} else {
//
// We could not determine whether the sources were up-to-date or out-of-date. Mark the
@@ -2813,7 +2813,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
dartCopy.setModificationTime(sourceTime);
cache.removedAst(unitSource);
- workManager.add(unitSource, WorkManagerPriority.UNKNOWN);
+ workManager.add(unitSource, SourcePriority.UNKNOWN);
} else {
//
// We could not determine whether the sources were up-to-date or out-of-date. Mark the
@@ -2895,11 +2895,11 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.setValue(SourceEntry.LINE_INFO, lineInfo);
if (task.hasPartOfDirective() && !task.hasLibraryDirective()) {
dartCopy.setValue(DartEntry.SOURCE_KIND, SourceKind.PART);
- workManager.add(source, WorkManagerPriority.NORMAL_PART);
+ workManager.add(source, SourcePriority.NORMAL_PART);
} else {
dartCopy.setValue(DartEntry.SOURCE_KIND, SourceKind.LIBRARY);
dartCopy.setContainingLibrary(source);
- workManager.add(source, WorkManagerPriority.LIBRARY);
+ workManager.add(source, SourcePriority.LIBRARY);
}
dartCopy.setValue(DartEntry.PARSED_UNIT, task.getCompilationUnit());
dartCopy.setValue(DartEntry.PARSE_ERRORS, task.getErrors());
@@ -2939,7 +2939,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
dartCopy.setModificationTime(sourceTime);
cache.removedAst(source);
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
} else {
//
// We could not determine whether the sources were up-to-date or out-of-date. Mark the
@@ -3298,7 +3298,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
dartCopy.setModificationTime(sourceTime);
cache.removedAst(source);
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
} else {
//
// We could not determine whether the sources were up-to-date or out-of-date. Mark the
@@ -3385,7 +3385,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
dartCopy.setModificationTime(sourceTime);
cache.removedAst(unitSource);
- workManager.add(unitSource, WorkManagerPriority.UNKNOWN);
+ workManager.add(unitSource, SourcePriority.UNKNOWN);
} else {
//
// We could not determine whether the sources were up-to-date or out-of-date. Mark the
@@ -3560,9 +3560,9 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
+ oldTime + ")");
}
if (sourceEntry instanceof HtmlEntry) {
- workManager.add(source, WorkManagerPriority.HTML);
+ workManager.add(source, SourcePriority.HTML);
} else {
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
}
return sourceEntry instanceof DartEntry;
}
@@ -3591,7 +3591,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
htmlCopy.invalidateAllInformation();
cache.put(source, htmlCopy);
cache.removedAst(source);
- workManager.add(source, WorkManagerPriority.HTML);
+ workManager.add(source, SourcePriority.HTML);
logInformation("Modified HTML source: " + debuggingString(source)
+ " (previously modified at " + oldTime + ")");
} else if (sourceEntry instanceof DartEntry) {
@@ -3620,7 +3620,7 @@ public class AnalysisContextImpl implements InternalAnalysisContext {
dartCopy.invalidateAllInformation();
cache.put(source, dartCopy);
cache.removedAst(source);
- workManager.add(source, WorkManagerPriority.UNKNOWN);
+ workManager.add(source, SourcePriority.UNKNOWN);
logInformation(writer.toString());
}

Powered by Google App Engine
This is Rietveld 408576698