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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 2738013002: Add support for metadata on type variables to Fasta parser. (Closed)
Patch Set: Bug fixes Created 3 years, 9 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/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index 52faa8f515cb9fc67b56ba9c0bb3033661dc3fe8..85c87baa502890f1e2e4d3cdaadad9ee9a346bde 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -14730,4 +14730,15 @@ enum E {
var typeAlias = parseFullCompilationUnitMember() as GenericTypeAlias;
expectCommentText(typeAlias.documentationComment, '/// Doc');
}
+
+ void test_parseTypeVariable_withDocumentationComment() {
+ createParser('''
+class A<
+ /// Doc
+ B> {}
+''');
+ var classDeclaration = parseFullCompilationUnitMember() as ClassDeclaration;
+ var typeVariable = classDeclaration.typeParameters.typeParameters[0];
+ expectCommentText(typeVariable.documentationComment, '/// Doc');
+ }
}

Powered by Google App Engine
This is Rietveld 408576698