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

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

Issue 2951033004: Implement type inference for conventional for-loops. (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 unified diff | Download patch
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void expressionStatementExit(ExpressionStatement statement) => 143 void expressionStatementExit(ExpressionStatement statement) =>
144 debugStatementExit('expressionStatement', statement); 144 debugStatementExit('expressionStatement', statement);
145 145
146 void forInStatementEnter(ForInStatement statement) => 146 void forInStatementEnter(ForInStatement statement) =>
147 debugStatementEnter('forInStatement', statement); 147 debugStatementEnter('forInStatement', statement);
148 148
149 void forInStatementExit(ForInStatement statement) => 149 void forInStatementExit(ForInStatement statement) =>
150 debugStatementExit('forInStatement', statement); 150 debugStatementExit('forInStatement', statement);
151 151
152 void forStatementEnter(ForStatement statement) =>
153 debugStatementEnter('forStatement', statement);
154
155 void forStatementExit(ForStatement statement) =>
156 debugStatementExit('forStatement', statement);
157
152 void functionDeclarationEnter(FunctionDeclaration statement) => 158 void functionDeclarationEnter(FunctionDeclaration statement) =>
153 debugStatementEnter('functionDeclaration', statement); 159 debugStatementEnter('functionDeclaration', statement);
154 160
155 void functionDeclarationExit(FunctionDeclaration statement) => 161 void functionDeclarationExit(FunctionDeclaration statement) =>
156 debugStatementExit('functionDeclaration', statement); 162 debugStatementExit('functionDeclaration', statement);
157 163
158 bool functionExpressionEnter( 164 bool functionExpressionEnter(
159 FunctionExpression expression, DartType typeContext) => 165 FunctionExpression expression, DartType typeContext) =>
160 debugExpressionEnter("functionExpression", expression, typeContext); 166 debugExpressionEnter("functionExpression", expression, typeContext);
161 167
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 325
320 void variableSetExit(VariableSet expression, DartType inferredType) => 326 void variableSetExit(VariableSet expression, DartType inferredType) =>
321 debugExpressionExit("variableSet", expression, inferredType); 327 debugExpressionExit("variableSet", expression, inferredType);
322 328
323 void yieldStatementEnter(YieldStatement statement) => 329 void yieldStatementEnter(YieldStatement statement) =>
324 debugStatementEnter('yieldStatement', statement); 330 debugStatementEnter('yieldStatement', statement);
325 331
326 void yieldStatementExit(YieldStatement statement) => 332 void yieldStatementExit(YieldStatement statement) =>
327 debugStatementExit('yieldStatement', statement); 333 debugStatementExit('yieldStatement', statement);
328 } 334 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698