Index: runtime/vm/kernel.h |
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h |
index 045e6e0f77e9fc01e3c4bb13646a5e0c1d1f8241..e2970b11074baceaec75a79090a06ff9f1872841 100644 |
--- a/runtime/vm/kernel.h |
+++ b/runtime/vm/kernel.h |
@@ -280,6 +280,8 @@ class RawList { |
class TypeParameterList : public List<TypeParameter> { |
public: |
void ReadFrom(Reader* reader); |
+ TypeParameterList() : first_offset(-1) {} |
+ intptr_t first_offset; |
}; |
@@ -2672,11 +2674,13 @@ class VariableDeclaration : public Statement { |
TokenPosition equals_position() { return equals_position_; } |
TokenPosition end_position() { return end_position_; } |
void set_end_position(TokenPosition position) { end_position_ = position; } |
+ intptr_t kernel_offset_no_tag() const { return kernel_offset_no_tag_; } |
private: |
VariableDeclaration() |
: equals_position_(TokenPosition::kNoSourcePos), |
- end_position_(TokenPosition::kNoSource) {} |
+ end_position_(TokenPosition::kNoSource), |
+ kernel_offset_no_tag_(-1) {} |
template <typename T> |
friend class List; |
@@ -2688,6 +2692,10 @@ class VariableDeclaration : public Statement { |
TokenPosition equals_position_; |
TokenPosition end_position_; |
+ // Offset for this node in the kernel-binary. Always without the tag. |
+ // Can be -1 to indicate "unknown" or invalid offset. |
+ intptr_t kernel_offset_no_tag_; |
+ |
DISALLOW_COPY_AND_ASSIGN(VariableDeclaration); |
}; |