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

Unified Diff: runtime/vm/kernel_binary_flowgraph.h

Issue 2977133002: Add documentationComment for Class to Kernel. Parse it. Resynthesize in Analyzer. (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 f3d899be177a888837cdb0c3138af5dbbd92fd0e..e67047f6a9d538565bde302bb587ba8e4b3c76d7 100644
--- a/runtime/vm/kernel_binary_flowgraph.h
+++ b/runtime/vm/kernel_binary_flowgraph.h
@@ -1212,6 +1212,7 @@ class ClassHelper {
kIsAbstract,
kNameIndex,
kSourceUriIndex,
+ kDocumentationCommentIndex,
kAnnotations,
kTypeParameters,
kSuperClass,
@@ -1263,6 +1264,9 @@ class ClassHelper {
builder_->current_script_id_ = source_uri_index_;
builder_->record_token_position(position_);
if (++next_read_ == field) return;
+ case kDocumentationCommentIndex:
+ documentation_comment_index_ = builder_->ReadStringReference();
Paul Berry 2017/07/14 22:03:08 Would it be better for the VM to just skip documen
Siggi Cherem (dart-lang) 2017/07/14 22:12:43 I share your concerns too, I like the idea of just
scheglov 2017/07/15 00:41:57 I agree, we can just skip it.
+ if (++next_read_ == field) return;
case kAnnotations: {
annotation_count_ = builder_->ReadListLength(); // read list length.
for (intptr_t i = 0; i < annotation_count_; ++i) {
@@ -1336,6 +1340,7 @@ class ClassHelper {
bool is_abstract_;
StringIndex name_index_;
intptr_t source_uri_index_;
+ StringIndex documentation_comment_index_;
intptr_t annotation_count_;
private:
« 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