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

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: 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
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 cf4d49346a521c67f48c3003cc3d1039a87b7412..1022abb830651aed35a7238a1703bcf837661fed 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -587,6 +587,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') | runtime/vm/kernel_binary_flowgraph.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698