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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/element.dart

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: pkg/analyzer_experimental/lib/src/generated/element.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/element.dart b/pkg/analyzer_experimental/lib/src/generated/element.dart
index 1a140b963be8f086e6f3ce95b41776c31b925458..3d7e2a43beb8a992ee9e5a626c2f55910eee9741 100644
--- a/pkg/analyzer_experimental/lib/src/generated/element.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/element.dart
@@ -1277,9 +1277,9 @@ class ClassElementImpl extends ElementImpl implements ClassElement {
accept(ElementVisitor visitor) => visitor.visitClassElement(this);
List<PropertyAccessorElement> get accessors => _accessors;
List<InterfaceType> get allSupertypes {
- Collection<InterfaceType> list = new Set<InterfaceType>();
- collectAllSupertypes(list);
- return new List.from(list);
+ Set<InterfaceType> set = new Set<InterfaceType>();
+ collectAllSupertypes(set);
+ return set.toList();
}
ElementImpl getChild(String identifier25) {
for (PropertyAccessorElement accessor in _accessors) {
@@ -1541,7 +1541,7 @@ class ClassElementImpl extends ElementImpl implements ClassElement {
builder.append(">");
}
}
- void collectAllSupertypes(Collection<InterfaceType> list) {
+ void collectAllSupertypes(var list) {
if (_supertype == null || list.contains(_supertype)) {
return;
}
@@ -4913,4 +4913,4 @@ abstract class TypeVariableType implements Type2 {
*/
abstract class VoidType implements Type2 {
VoidType substitute2(List<Type2> argumentTypes, List<Type2> parameterTypes);
-}
+}
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/ast.dart ('k') | pkg/analyzer_experimental/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698