OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart'; | 5 import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart'; |
6 import 'package:kernel/ast.dart'; | 6 import 'package:kernel/ast.dart'; |
7 | 7 |
8 /// Base class for [TypeInferenceListener] that defines the API for debugging. | 8 /// Base class for [TypeInferenceListener] that defines the API for debugging. |
9 /// | 9 /// |
10 /// By default no debug info is printed. To enable debug printing, mix in | 10 /// By default no debug info is printed. To enable debug printing, mix in |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 bool mapLiteralEnter(MapLiteral expression, DartType typeContext) => | 255 bool mapLiteralEnter(MapLiteral expression, DartType typeContext) => |
256 genericExpressionEnter("mapLiteral", expression, typeContext); | 256 genericExpressionEnter("mapLiteral", expression, typeContext); |
257 | 257 |
258 void mapLiteralExit(MapLiteral expression, DartType typeContext) => | 258 void mapLiteralExit(MapLiteral expression, DartType typeContext) => |
259 genericExpressionExit("mapLiteral", expression, typeContext); | 259 genericExpressionExit("mapLiteral", expression, typeContext); |
260 | 260 |
261 bool methodInvocationEnter(Expression expression, DartType typeContext) => | 261 bool methodInvocationEnter(Expression expression, DartType typeContext) => |
262 genericExpressionEnter("methodInvocation", expression, typeContext); | 262 genericExpressionEnter("methodInvocation", expression, typeContext); |
263 | 263 |
264 void methodInvocationExit(Expression expression, DartType inferredType) => | 264 void methodInvocationBeforeArgs(Expression expression, bool isImplicitCall) {} |
| 265 |
| 266 void methodInvocationExit(Expression expression, Arguments arguments, |
| 267 bool isImplicitCall, DartType inferredType) => |
265 genericExpressionExit("methodInvocation", expression, inferredType); | 268 genericExpressionExit("methodInvocation", expression, inferredType); |
266 | 269 |
267 bool notEnter(Not expression, DartType typeContext) => | 270 bool notEnter(Not expression, DartType typeContext) => |
268 genericExpressionEnter("not", expression, typeContext); | 271 genericExpressionEnter("not", expression, typeContext); |
269 | 272 |
270 void notExit(Not expression, DartType inferredType) => | 273 void notExit(Not expression, DartType inferredType) => |
271 genericExpressionExit("not", expression, inferredType); | 274 genericExpressionExit("not", expression, inferredType); |
272 | 275 |
273 bool nullLiteralEnter(NullLiteral expression, DartType typeContext) => | 276 bool nullLiteralEnter(NullLiteral expression, DartType typeContext) => |
274 genericExpressionEnter("nullLiteral", expression, typeContext); | 277 genericExpressionEnter("nullLiteral", expression, typeContext); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 | 423 |
421 void whileStatementExit(WhileStatement statement) => | 424 void whileStatementExit(WhileStatement statement) => |
422 genericStatementExit("whileStatement", statement); | 425 genericStatementExit("whileStatement", statement); |
423 | 426 |
424 void yieldStatementEnter(YieldStatement statement) => | 427 void yieldStatementEnter(YieldStatement statement) => |
425 genericStatementEnter('yieldStatement', statement); | 428 genericStatementEnter('yieldStatement', statement); |
426 | 429 |
427 void yieldStatementExit(YieldStatement statement) => | 430 void yieldStatementExit(YieldStatement statement) => |
428 genericStatementExit('yieldStatement', statement); | 431 genericStatementExit('yieldStatement', statement); |
429 } | 432 } |
OLD | NEW |