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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 debugStatementExit('functionDeclaration', statement); | 156 debugStatementExit('functionDeclaration', statement); |
157 | 157 |
158 bool functionExpressionEnter( | 158 bool functionExpressionEnter( |
159 FunctionExpression expression, DartType typeContext) => | 159 FunctionExpression expression, DartType typeContext) => |
160 debugExpressionEnter("functionExpression", expression, typeContext); | 160 debugExpressionEnter("functionExpression", expression, typeContext); |
161 | 161 |
162 void functionExpressionExit( | 162 void functionExpressionExit( |
163 FunctionExpression expression, DartType inferredType) => | 163 FunctionExpression expression, DartType inferredType) => |
164 debugExpressionExit("functionExpression", expression, inferredType); | 164 debugExpressionExit("functionExpression", expression, inferredType); |
165 | 165 |
| 166 bool ifNullEnter(Expression expression, DartType typeContext) => |
| 167 debugExpressionEnter('ifNull', expression, typeContext); |
| 168 |
| 169 void ifNullExit(Expression expression, DartType inferredType) => |
| 170 debugExpressionExit('ifNull', expression, inferredType); |
| 171 |
166 void ifStatementEnter(IfStatement statement) => | 172 void ifStatementEnter(IfStatement statement) => |
167 debugStatementEnter('ifStatement', statement); | 173 debugStatementEnter('ifStatement', statement); |
168 | 174 |
169 void ifStatementExit(IfStatement statement) => | 175 void ifStatementExit(IfStatement statement) => |
170 debugStatementExit('ifStatement', statement); | 176 debugStatementExit('ifStatement', statement); |
171 | 177 |
172 bool indexAssignEnter(Expression expression, DartType typeContext) => | 178 bool indexAssignEnter(Expression expression, DartType typeContext) => |
173 debugExpressionEnter("indexAssign", expression, typeContext); | 179 debugExpressionEnter("indexAssign", expression, typeContext); |
174 | 180 |
175 void indexAssignExit(Expression expression, DartType inferredType) => | 181 void indexAssignExit(Expression expression, DartType inferredType) => |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 320 |
315 void variableSetExit(VariableSet expression, DartType inferredType) => | 321 void variableSetExit(VariableSet expression, DartType inferredType) => |
316 debugExpressionExit("variableSet", expression, inferredType); | 322 debugExpressionExit("variableSet", expression, inferredType); |
317 | 323 |
318 void yieldStatementEnter(YieldStatement statement) => | 324 void yieldStatementEnter(YieldStatement statement) => |
319 debugStatementEnter('yieldStatement', statement); | 325 debugStatementEnter('yieldStatement', statement); |
320 | 326 |
321 void yieldStatementExit(YieldStatement statement) => | 327 void yieldStatementExit(YieldStatement statement) => |
322 debugStatementExit('yieldStatement', statement); | 328 debugStatementExit('yieldStatement', statement); |
323 } | 329 } |
OLD | NEW |