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/kernel/lib/ast.dart

Issue 2697193008: [Kernel] replace function debuggable field with originalAsyncMarker field (Closed)
Patch Set: ASSERT in kernel_reader Created 3 years, 10 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
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index 2f3cb111d74337e809f435bacbdfa2000ae8f9db..294b046a10074e77c26d4e6152732cb9f645d270 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -1150,8 +1150,21 @@ class FunctionNode extends TreeNode {
/// (this is the default if none is specifically set).
int fileEndOffset = TreeNode.noOffset;
+ /// Kernel async marker for the function.
+ ///
+ /// See also [dartAsyncMarker].
AsyncMarker asyncMarker;
- bool debuggable = true;
+
+ /// Dart async marker for the function.
+ ///
+ /// See also [asyncMarker].
+ ///
+ /// A Kernel function can represent a Dart function with a different async
+ /// marker.
+ ///
+ /// For example, when async/await is translated away,
+ /// a Dart async function might be represented by a Kernel sync function.
+ AsyncMarker dartAsyncMarker;
List<TypeParameter> typeParameters;
int requiredParameterCount;
List<VariableDeclaration> positionalParameters;
@@ -1167,7 +1180,8 @@ class FunctionNode extends TreeNode {
int requiredParameterCount,
this.returnType: const DynamicType(),
this.inferredReturnValue,
- this.asyncMarker: AsyncMarker.Sync})
+ this.asyncMarker: AsyncMarker.Sync,
+ this.dartAsyncMarker: AsyncMarker.Sync})
: this.positionalParameters =
positionalParameters ?? <VariableDeclaration>[],
this.requiredParameterCount =
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698