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

Side by Side Diff: pkg/analyzer/test/generated/parser_fasta_test.dart

Issue 2856463004: New tests and improvements for generics in comments parsing. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/dart/ast/token.dart' as analyzer; 6 import 'package:analyzer/dart/ast/token.dart' as analyzer;
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/src/fasta/ast_builder.dart'; 9 import 'package:analyzer/src/fasta/ast_builder.dart';
10 import 'package:analyzer/src/fasta/element_store.dart'; 10 import 'package:analyzer/src/fasta/element_store.dart';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 */ 46 */
47 class BuilderProxy implements Builder { 47 class BuilderProxy implements Builder {
48 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 48 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
49 } 49 }
50 50
51 @reflectiveTest 51 @reflectiveTest
52 class ClassMemberParserTest_Fasta extends FastaParserTestCase 52 class ClassMemberParserTest_Fasta extends FastaParserTestCase
53 with ClassMemberParserTestMixin { 53 with ClassMemberParserTestMixin {
54 @override 54 @override
55 @failingTest 55 @failingTest
56 void test_parseClassMember_method_generic_comment_returnType() {
57 // TODO(paulberry): Fasta doesn't support generic comment syntax
58 super.test_parseClassMember_method_generic_comment_returnType();
59 }
60
61 @override
62 @failingTest
63 void test_parseClassMember_method_generic_comment_returnType_bound() {
64 // TODO(paulberry): Fasta doesn't support generic comment syntax
65 super.test_parseClassMember_method_generic_comment_returnType_bound();
66 }
67
68 @override
69 @failingTest
70 void test_parseConstructor_assert() { 56 void test_parseConstructor_assert() {
71 // TODO(paulberry): Fasta doesn't support asserts in initializers 57 // TODO(paulberry): Fasta doesn't support asserts in initializers
72 super.test_parseConstructor_assert(); 58 super.test_parseConstructor_assert();
73 } 59 }
74 } 60 }
75 61
76 /** 62 /**
77 * Tests of the fasta parser based on [ComplexParserTestMixin]. 63 * Tests of the fasta parser based on [ComplexParserTestMixin].
78 */ 64 */
79 @reflectiveTest 65 @reflectiveTest
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 } 957 }
972 958
973 @override 959 @override
974 @failingTest 960 @failingTest
975 void test_parsePartOfDirective_uri() { 961 void test_parsePartOfDirective_uri() {
976 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by 962 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by
977 // Fasta. 963 // Fasta.
978 super.test_parsePartOfDirective_uri(); 964 super.test_parsePartOfDirective_uri();
979 } 965 }
980 } 966 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698