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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2990873002: Add Member.documentationComment and use it to resynthesize documentation from Kernel. (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 be7196884cb58264ba32f2d44c93b8db0fc588a7..551c0dd46cd21d12ef67d3c0c1bc257439c838f8 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -860,6 +860,7 @@ class FieldHelper {
kParentClassBinaryOffset,
kName,
kSourceUriIndex,
+ kDocumentationCommentIndex,
kAnnotations,
kType,
kInitializer,
@@ -919,6 +920,9 @@ class FieldHelper {
builder_->record_token_position(position_);
builder_->record_token_position(end_position_);
if (++next_read_ == field) return;
+ case kDocumentationCommentIndex:
+ builder_->ReadStringReference();
+ if (++next_read_ == field) return;
case kAnnotations: {
annotation_count_ = builder_->ReadListLength(); // read list length.
for (intptr_t i = 0; i < annotation_count_; ++i) {
@@ -1009,6 +1013,7 @@ class ProcedureHelper {
kParentClassBinaryOffset,
kName,
kSourceUriIndex,
+ kDocumentationCommentIndex,
kAnnotations,
kFunction,
kEnd
@@ -1063,6 +1068,9 @@ class ProcedureHelper {
builder_->record_token_position(position_);
builder_->record_token_position(end_position_);
if (++next_read_ == field) return;
+ case kDocumentationCommentIndex:
+ builder_->ReadStringReference();
+ if (++next_read_ == field) return;
case kAnnotations: {
annotation_count_ = builder_->ReadListLength(); // read list length.
for (intptr_t i = 0; i < annotation_count_; ++i) {
@@ -1129,6 +1137,7 @@ class ConstructorHelper {
kFlags,
kParentClassBinaryOffset,
kName,
+ kDocumentationCommentIndex,
kAnnotations,
kFunction,
kInitializers,
@@ -1174,6 +1183,9 @@ class ConstructorHelper {
case kName:
builder_->SkipName(); // read name.
if (++next_read_ == field) return;
+ case kDocumentationCommentIndex:
+ builder_->ReadStringReference();
+ if (++next_read_ == field) return;
case kAnnotations: {
annotation_count_ = builder_->ReadListLength(); // read list length.
for (intptr_t i = 0; i < annotation_count_; ++i) {
« 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