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

Unified Diff: lib/compiler/implementation/dart_backend/backend.dart

Issue 10701117: Fix broken unparser test in checked mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/dart_backend/backend.dart
diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
index e24099114f732a97f5f9358ad54e32e1de49cdbd..2e64b75d7f55efc423defbd8fd3b39df1f964fd9 100644
--- a/lib/compiler/implementation/dart_backend/backend.dart
+++ b/lib/compiler/implementation/dart_backend/backend.dart
@@ -41,15 +41,15 @@ class DartBackend extends Backend {
void addMemberToClass(Element element, ClassElement classElement) {
// ${element} should have ${classElement} as enclosing.
assert(element.enclosingElement == classElement);
- List<Element> resolvedElementsInClass =
- resolvedClassMembers.putIfAbsent(classElement, () => <Element>[]);
+ Set<Element> resolvedElementsInClass = resolvedClassMembers.putIfAbsent(
+ classElement, () => new Set<Element>());
resolvedElementsInClass.add(element);
}
/**
* Outputs given class element with given inner elements to a string buffer.
*/
- void outputClass(ClassElement classElement, List<Element> innerElements,
+ void outputClass(ClassElement classElement, Set<Element> innerElements,
StringBuffer sb) {
// TODO(smok): Very soon properly print out correct class declaration with
// extends, implements, etc.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698