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

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2615013003: Fix for summarizing triple slash documentation comments. (Closed)
Patch Set: Created 3 years, 11 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/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index 7f362aebbdf6f4d851fecfa98c93d5e56096e920..9d51fd8ac16240f4b869bb18d075a568bda363c2 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -1303,6 +1303,19 @@ class C {}''';
checkDocumentationComment(cls.documentationComment, text);
}
+ test_class_documented_tripleSlash() {
+ if (!includeInformative) return;
+ String text = '''
+/// aaa
+/// bbbb
+/// cc
+class C {}''';
+ UnlinkedClass cls = serializeClassText(text);
+ UnlinkedDocumentationComment comment = cls.documentationComment;
+ expect(comment, isNotNull);
+ expect(comment.text, '/// aaa\n/// bbbb\n/// cc');
+ }
+
test_class_documented_with_references() {
if (!includeInformative) return;
String text = '''
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698