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: Address comments; small fixes; rebased. 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
« no previous file with comments | « pkg/kernel/binary.md ('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 f051b14ade22132f252350ab363b45c0099bf252..716be8cf801a7fb5ff7c5f7293c2fb910416b1aa 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.
///
@@ -4148,6 +4151,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);
« no previous file with comments | « pkg/kernel/binary.md ('k') | pkg/kernel/lib/binary/ast_from_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698