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

Unified Diff: pkg/analyzer/lib/src/fasta/ast_builder.dart

Issue 2899073004: Use declared return type for inference of return and yield statements. (Closed)
Patch Set: Created 3 years, 7 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/analyzer/lib/src/fasta/ast_builder.dart
diff --git a/pkg/analyzer/lib/src/fasta/ast_builder.dart b/pkg/analyzer/lib/src/fasta/ast_builder.dart
index 8baab7cbe24322f052c5fe9e8a7ebca8114b13fd..0a37fa0bab12e468b46f67f3be770320200105c8 100644
--- a/pkg/analyzer/lib/src/fasta/ast_builder.dart
+++ b/pkg/analyzer/lib/src/fasta/ast_builder.dart
@@ -35,6 +35,7 @@ import 'element_store.dart'
ElementStore,
KernelClassElement;
import 'package:analyzer/src/dart/error/syntactic_errors.dart';
+import 'package:kernel/ast.dart' show FunctionNode;
import 'token_utils.dart' show toAnalyzerToken, toAnalyzerCommentToken;
class AstBuilder extends ScopeListener {
@@ -292,7 +293,8 @@ class AstBuilder extends ScopeListener {
push(ast.blockFunctionBody(asyncKeyword, star, block));
}
- void finishFunction(formals, asyncModifier, FunctionBody body) {
+ void finishFunction(
+ FunctionNode function, formals, asyncModifier, FunctionBody body) {
debugEvent("finishFunction");
Statement bodyStatement;
if (body is EmptyFunctionBody) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | pkg/front_end/lib/src/fasta/builder/procedure_builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698