Skip to content

Commit b7e6e07

Browse files
committed
Add some simpler cases
1 parent 3b1a453 commit b7e6e07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/comment_referable/parser_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ void main() {
2323

2424
group('Basic comment reference parsing', () {
2525
test('Check that basic references parse', () {
26+
expectParseEquivalent('valid', ['valid']);
27+
expectParseEquivalent('new valid', ['valid'], constructorHint: true);
28+
expectParseEquivalent('valid()', ['valid'], constructorHint: true);
29+
expectParseEquivalent('const valid()', ['valid'], constructorHint: true);
30+
expectParseEquivalent('final valid', ['valid']);
2631
expectParseEquivalent('this.is.valid', ['this', 'is', 'valid']);
2732
expectParseEquivalent('this.is.valid()', ['this', 'is', 'valid'],
2833
constructorHint: true);

0 commit comments

Comments
 (0)