| Index: tests/compiler/dart2js/mock_compiler.dart
|
| diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
|
| index c08dbde9a9385f3916cce9ae74f029558b4f9b88..79e380d8d10ee0b2e2df7b0772614f295a2d1a8d 100644
|
| --- a/tests/compiler/dart2js/mock_compiler.dart
|
| +++ b/tests/compiler/dart2js/mock_compiler.dart
|
| @@ -17,6 +17,7 @@ import 'package:compiler/src/diagnostics/diagnostic_listener.dart';
|
| import 'package:compiler/src/diagnostics/source_span.dart';
|
| import 'package:compiler/src/diagnostics/spannable.dart';
|
| import 'package:compiler/src/elements/elements.dart';
|
| +import 'package:compiler/src/elements/visitor.dart';
|
| import 'package:compiler/src/js_backend/backend_helpers.dart'
|
| show BackendHelpers;
|
| import 'package:compiler/src/js_backend/lookup_map_analysis.dart'
|
| @@ -347,6 +348,10 @@ class MockElement extends FunctionElementX {
|
| parseNode(_) => null;
|
|
|
| bool get hasNode => false;
|
| +
|
| + accept(ElementVisitor visitor, arg) {
|
| + return visitor.visitMethodElement(this, arg);
|
| + }
|
| }
|
|
|
| // TODO(herhut): Disallow warnings and errors during compilation by default.
|
|
|