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

Unified Diff: pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart

Issue 2824393002: Introduce a testing framework for use with fasta type inference. (Closed)
Patch Set: Created 3 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: pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart
index 94984dba3ce8d1104ec2e44251fc01c7f098af17..c38c4113b3dd40b243eb39f636f19efce09fb57c 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
+import 'package:front_end/src/base/instrumentation.dart';
import 'package:kernel/ast.dart' show DartType;
import 'package:kernel/class_hierarchy.dart';
import 'package:kernel/core_types.dart';
@@ -20,11 +21,13 @@ abstract class TypeInferrer<S, E, V, F> {
final ClassHierarchy classHierarchy;
+ final Instrumentation instrumentation;
+
/// The URI of the code for which type inference is currently being
/// performed--this is used for testing.
Uri uri;
- TypeInferrer(this.coreTypes, this.classHierarchy);
+ TypeInferrer(this.coreTypes, this.classHierarchy, this.instrumentation);
/// Performs type inference on a method with the given method [body].
///

Powered by Google App Engine
This is Rietveld 408576698