Chromium Code Reviews| 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 0dd811ce17d979ea948092899e1ac4721c196149..167c3cf9cc297873aa305700bbef10b6cadf3c1b 100644 |
| --- a/lib/compiler/implementation/dart_backend/backend.dart |
| +++ b/lib/compiler/implementation/dart_backend/backend.dart |
| @@ -147,6 +147,18 @@ class ReferencedElementCollector extends AbstractVisitor { |
| .collect(); |
| } |
| + visitClassNode(ClassNode node) { |
| + super.visitClassNode(node); |
| + // Temporary hack which should go away once interfaces |
| + // and default clauses are out. |
| + if (node.defaultClause !== null) { |
| + // Resolver cannot resolve parameterized default clauses. |
| + TypeAnnotation evilCousine = new TypeAnnotation( |
|
Roman
2012/08/15 14:52:22
What a hack!
Anton Muhin
2012/08/15 15:11:35
Yes, we can!
On 2012/08/15 14:52:22, Roman wrote:
|
| + node.defaultClause.typeName, null); |
| + evilCousine.accept(this); |
| + } |
| + } |
| + |
| visitNode(Node node) { node.visitChildren(this); } |
| visitTypeAnnotation(TypeAnnotation typeAnnotation) { |