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); |