Index: pkg/analyzer/lib/src/generated/engine.dart |
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart |
index 3650fc84f4295198d424794fc088b3e09902bf7c..dfbac68d7704ad0a05d529ea870652a3cbbc54d9 100644 |
--- a/pkg/analyzer/lib/src/generated/engine.dart |
+++ b/pkg/analyzer/lib/src/generated/engine.dart |
@@ -167,7 +167,8 @@ class AnalysisCache { |
*/ |
MapIterator<Source, SourceEntry> iterator() { |
int count = _partitions.length; |
- List<Map<Source, SourceEntry>> maps = new List<Map>(count); |
+ List<Map<Source, SourceEntry>> maps = |
vsm
2015/06/01 13:48:45
ditto here for lhs
|
+ new List<Map<Source, SourceEntry>>(count); |
for (int i = 0; i < count; i++) { |
maps[i] = _partitions[i].map; |
} |
@@ -2505,7 +2506,8 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
} |
@override |
- bool shouldErrorsBeAnalyzed(Source source, DartEntry dartEntry) { |
+ bool shouldErrorsBeAnalyzed(Source source, Object entry) { |
Brian Wilkerson
2015/05/30 15:52:57
I don't like this change, but I'm guessing that ei
vsm
2015/06/01 13:48:45
Not sure it makes sense here, but an alternative i
Paul Berry
2015/06/01 15:38:14
Acknowledged.
|
+ DartEntry dartEntry = entry; |
if (source.isInSystemLibrary) { |
return _generateSdkErrors; |
} else if (!dartEntry.explicitlyAdded) { |
@@ -2639,7 +2641,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
libraryElement.definingCompilationUnit; |
List<CompilationUnitElement> parts = libraryElement.parts; |
List<TimestampedData<CompilationUnit>> units = |
- new List<TimestampedData>(parts.length + 1); |
+ new List<TimestampedData<CompilationUnit>>(parts.length + 1); |
vsm
2015/06/01 13:48:45
Here as well though perhaps it's your style to be
Paul Berry
2015/06/01 15:38:14
This morning we had a discussion about this (and y
|
units[0] = _getResolvedUnit(definingUnit, librarySource); |
if (units[0] == null) { |
Source source = definingUnit.source; |
@@ -2693,7 +2695,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
libraryElement.definingCompilationUnit; |
List<CompilationUnitElement> parts = libraryElement.parts; |
List<TimestampedData<CompilationUnit>> units = |
- new List<TimestampedData>(parts.length + 1); |
+ new List<TimestampedData<CompilationUnit>>(parts.length + 1); |
units[0] = _getResolvedUnit(definingUnit, librarySource); |
if (units[0] == null) { |
Source source = definingUnit.source; |
@@ -3099,7 +3101,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
libraryElement.definingCompilationUnit; |
List<CompilationUnitElement> parts = libraryElement.parts; |
List<TimestampedData<CompilationUnit>> units = |
- new List<TimestampedData>(parts.length + 1); |
+ new List<TimestampedData<CompilationUnit>>(parts.length + 1); |
units[0] = _getResolvedUnit(definingUnit, librarySource); |
if (units[0] == null) { |
// TODO(brianwilkerson) We should return a ResolveDartUnitTask |
@@ -3132,7 +3134,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
libraryElement.definingCompilationUnit; |
List<CompilationUnitElement> parts = libraryElement.parts; |
List<TimestampedData<CompilationUnit>> units = |
- new List<TimestampedData>(parts.length + 1); |
+ new List<TimestampedData<CompilationUnit>>(parts.length + 1); |
units[0] = _getResolvedUnit(definingUnit, librarySource); |
if (units[0] == null) { |
// TODO(brianwilkerson) We should return a ResolveDartUnitTask |
@@ -11501,7 +11503,7 @@ class WorkManager { |
*/ |
WorkManager() { |
int queueCount = SourcePriority.values.length; |
- _workQueues = new List<List>(queueCount); |
+ _workQueues = new List<List<Source>>(queueCount); |
for (int i = 0; i < queueCount; i++) { |
_workQueues[i] = new List<Source>(); |
} |