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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2971903006: Add fileEndOffset to Class. (Closed)
Patch Set: Created 3 years, 5 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/binary/ast_to_binary.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary_flowgraph.h
diff --git a/runtime/vm/kernel_binary_flowgraph.h b/runtime/vm/kernel_binary_flowgraph.h
index c645744049f19ba6b9746fdb7a34a5edf784a083..9d7f15ce26fb6c1bf39e59b9385ba6f08dcf7f94 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -1198,6 +1198,7 @@ class ClassHelper {
kStart, // tag.
kCanonicalName,
kPosition,
+ kEndPosition,
kIsAbstract,
kNameIndex,
kSourceUriIndex,
@@ -1238,6 +1239,9 @@ class ClassHelper {
case kPosition:
position_ = builder_->ReadPosition(false); // read position.
if (++next_read_ == field) return;
+ case kEndPosition:
+ end_position_ = builder_->ReadPosition(); // read end position.
+ if (++next_read_ == field) return;
case kIsAbstract:
is_abstract_ = builder_->ReadBool(); // read is_abstract.
if (++next_read_ == field) return;
@@ -1314,6 +1318,7 @@ class ClassHelper {
NameIndex canonical_name_;
TokenPosition position_;
+ TokenPosition end_position_;
bool is_abstract_;
StringIndex name_index_;
intptr_t source_uri_index_;
« no previous file with comments | « pkg/kernel/lib/binary/ast_to_binary.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698