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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.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
Index: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index 6aacdf5afb7fb7d02cd3acaeb07a384034ddec71..cb2c82c4d15a89e6b398bc603155ba2c4079342f 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -2113,28 +2113,17 @@ class C {
test_class_documented() async {
var library = await checkLibrary('''
-// Extra comment so doc comment offset != 0
/**
* Docs
*/
class C {}''');
- if (isStrongMode) {
- checkElementText(library, r'''
-/**
- * Docs
- */
-class C {
-}
-''');
- } else {
- checkElementText(library, r'''
+ checkElementText(library, r'''
/**
* Docs
*/
class C {
}
''');
- }
}
test_class_documented_tripleSlash() async {
@@ -2219,6 +2208,22 @@ class C {
}
}
+ test_class_documented_withLeadingNotDocumentation() async {
+ var library = await checkLibrary('''
+// Extra comment so doc comment offset != 0
+/**
+ * Docs
+ */
+class C {}''');
+ checkElementText(library, r'''
+/**
+ * Docs
+ */
+class C {
+}
+''');
+ }
+
test_class_field_const() async {
var library = await checkLibrary('class C { static const int i = 0; }');
if (isStrongMode) {
« no previous file with comments | « pkg/analyzer/lib/src/fasta/analyzer_target.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698