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

Unified Diff: pkg/kernel/lib/ast.dart

Issue 2854393002: [kernel] [partial] Streaming of kernel binary without AST nodes (Closed)
Patch Set: Created 3 years, 8 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/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index fa2d18086786c490994e0d73ab078909a8e60dbc..1d8b539ee59ee59b55b8e049a26469c96765aad7 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -3586,6 +3586,9 @@ class VariableDeclaration extends Statement {
int flags = 0;
DartType type; // Not null, defaults to dynamic.
+ /// Offset of the declaration, set and used when writing the binary.
+ int binaryOffset = -1;
+
/// For locals, this is the initial value.
/// For parameters, this is the default value.
///
@@ -4137,6 +4140,9 @@ class TypeParameter extends TreeNode {
/// be set to the root class for type parameters without an explicit bound.
DartType bound;
+ /// Offset of the declaration, set and used when writing the binary.
+ int binaryOffset = 0;
+
TypeParameter([this.name, this.bound]);
accept(TreeVisitor v) => v.visitTypeParameter(this);

Powered by Google App Engine
This is Rietveld 408576698