| Index: dart/tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/dart/tests/compiler/dart2js/mock_compiler.dart b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| index 7fdad36a504f0fc57b83210f42ef3be7f30277f9..aa39101662e0a9ae64f954f0dd8f784b63e3ad4b 100644
|
| --- a/dart/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/dart/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -163,12 +163,6 @@ class MockCompiler extends Compiler {
|
| api.Diagnostic.WARNING);
|
| }
|
|
|
| - void reportFatalError(Spannable node,
|
| - MessageKind messageKind,
|
| - [Map arguments = const {}]) {
|
| - reportError(node, messageKind, arguments);
|
| - }
|
| -
|
| void reportDiagnostic(Spannable node,
|
| Message message,
|
| api.Diagnostic kind) {
|
| @@ -218,7 +212,14 @@ class MockCompiler extends Compiler {
|
| if (visitor.scope is LibraryScope) {
|
| visitor.scope = new MethodScope(visitor.scope, element);
|
| }
|
| - visitor.visit(tree);
|
| + try {
|
| + visitor.visit(tree);
|
| + } on CompilerCancelledException catch (_) {
|
| + // Ignored.
|
| +
|
| + // TODO(ahe): Don't ignore CompilerCancelledException, instead, fix
|
| + // pkg/compiler/lib/src/resolution/members.dart.
|
| + }
|
| visitor.scope = new LibraryScope(element.library);
|
| return visitor.registry.mapping;
|
| }
|
|
|