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

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

Issue 2948773002: Rename "field" -> "accessor" in several type inference methods. (Closed)
Patch Set: Created 3 years, 6 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_inference_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
index 4341ba19a19d88eddf37e0f2f9f629d974b4a969..3f17f013a85e380f550975d930e337c856db58f4 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
@@ -10,7 +10,7 @@ import 'package:kernel/ast.dart';
/// By default no debug info is printed. To enable debug printing, mix in
/// [TypeInferenceDebugging].
class TypeInferenceBase {
- void debugDependency(FieldNode fieldNode) {}
+ void debugDependency(AccessorNode accessorNode) {}
bool debugExpressionEnter(
String expressionType, Expression expression, DartType typeContext) {
@@ -32,8 +32,8 @@ class TypeInferenceBase {
/// Mixin which can be applied to [TypeInferenceListener] to cause debug info to
/// be printed.
class TypeInferenceDebugging implements TypeInferenceBase {
- void debugDependency(FieldNode fieldNode) {
- print('Dependency $fieldNode');
+ void debugDependency(AccessorNode accessorNode) {
+ print('Dependency $accessorNode');
}
bool debugExpressionEnter(
@@ -249,7 +249,8 @@ class TypeInferenceListener
void propertySetExit(PropertySet expression, DartType inferredType) =>
debugExpressionExit("propertySet", expression, inferredType);
- void recordDependency(FieldNode fieldNode) => debugDependency(fieldNode);
+ void recordDependency(AccessorNode accessorNode) =>
+ debugDependency(accessorNode);
void redirectingInitializerEnter(RedirectingInitializer initializer) =>
debugInitializerEnter("redirectingInitializer", initializer);

Powered by Google App Engine
This is Rietveld 408576698