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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1127183003: Rename EMPTY_ARRAY to EMPTY_LIST (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/context.dart
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart
index debb32e7973178d6b30dd144d75f0a91299dff27..a1d26713b8ee1f411686378bf189552e4a6d5074 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -233,13 +233,13 @@ class AnalysisContextImpl implements InternalAnalysisContext {
@override
void set analysisPriorityOrder(List<Source> sources) {
if (sources == null || sources.isEmpty) {
- _priorityOrder = Source.EMPTY_ARRAY;
+ _priorityOrder = Source.EMPTY_LIST;
} else {
while (sources.remove(null)) {
// Nothing else to do.
}
if (sources.isEmpty) {
- _priorityOrder = Source.EMPTY_ARRAY;
+ _priorityOrder = Source.EMPTY_LIST;
} else {
_priorityOrder = sources;
}
@@ -776,7 +776,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
List<Source> getHtmlFilesReferencing(Source source) {
SourceKind sourceKind = getKindOf(source);
if (sourceKind == null) {
- return Source.EMPTY_ARRAY;
+ return Source.EMPTY_LIST;
}
List<Source> htmlSources = new List<Source>();
while (true) {
@@ -811,7 +811,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
break;
}
if (htmlSources.isEmpty) {
- return Source.EMPTY_ARRAY;
+ return Source.EMPTY_LIST;
}
return htmlSources;
}
@@ -826,7 +826,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
// if (sourceEntry is DartEntry) {
// return sourceEntry.containingLibraries;
// }
- return Source.EMPTY_ARRAY;
+ return Source.EMPTY_LIST;
}
@override
@@ -845,7 +845,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
}
if (dependentLibraries.isEmpty) {
- return Source.EMPTY_ARRAY;
+ return Source.EMPTY_LIST;
}
return dependentLibraries;
}
@@ -858,7 +858,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
// HtmlEntry htmlEntry = entry;
// return htmlEntry.getValue(HtmlEntry.REFERENCED_LIBRARIES);
// }
- return Source.EMPTY_ARRAY;
+ return Source.EMPTY_LIST;
}
@override
@@ -1078,11 +1078,11 @@ class AnalysisContextImpl implements InternalAnalysisContext {
// CONSTRUCTORS
// CONSTRUCTORS_ERRORS
entry.setState(CONTENT, CacheState.FLUSHED);
- setValue(EXPORTED_LIBRARIES, Source.EMPTY_ARRAY);
+ setValue(EXPORTED_LIBRARIES, Source.EMPTY_LIST);
// EXPORT_SOURCE_CLOSURE
- setValue(IMPORTED_LIBRARIES, Source.EMPTY_ARRAY);
+ setValue(IMPORTED_LIBRARIES, Source.EMPTY_LIST);
// IMPORT_SOURCE_CLOSURE
- setValue(INCLUDED_PARTS, Source.EMPTY_ARRAY);
+ setValue(INCLUDED_PARTS, Source.EMPTY_LIST);
setValue(IS_CLIENT, true);
setValue(IS_LAUNCHABLE, false);
setValue(LIBRARY_ELEMENT, library);
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698