| 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.
|
|
|