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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2977133002: Add documentationComment for Class to Kernel. Parse it. Resynthesize in Analyzer. (Closed)
Patch Set: Skip kDocumentationCommentIndex, don't store it. 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 | « no previous file | pkg/analyzer/lib/src/fasta/analyzer_loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 756fec6a6a8717a6b4a68f657b9443f85e1d48f3..0217df7869a936b3dc667b3094ad7d939caead22 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -592,6 +592,9 @@ class ClassElementImpl extends AbstractClassElementImpl
@override
String get documentationComment {
+ if (_kernel != null) {
+ return _kernel.documentationComment;
+ }
if (_unlinkedClass != null) {
return _unlinkedClass?.documentationComment?.text;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/analyzer_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698