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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 1856713002: Test ResolutionImpact equivalence. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments Created 4 years, 8 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
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.
« no previous file with comments | « pkg/compiler/lib/src/universe/selector.dart ('k') | tests/compiler/dart2js/serialization_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698