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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 1324323004: Issue 24298. Fix for 'async' function body conversion. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 7940662d36610f9447dc5ea6ba2708aeabaa117a..0c5dfc2ee349caf7de041227cd76cfc84de2e307 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -3477,7 +3477,12 @@ class BlockFunctionBody extends FunctionBody {
}
@override
- Token get beginToken => _block.beginToken;
+ Token get beginToken {
+ if (keyword != null) {
+ return keyword;
+ }
+ return _block.beginToken;
+ }
/**
* Return the block representing the body of the function.

Powered by Google App Engine
This is Rietveld 408576698