Skip to content

Commit 758abff

Browse files
committed
Added test for occurrences on abstract keyword
1 parent b33a35b commit 758abff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////[|abstract|] class Animal {
4+
//// [|abstract|] walk(): void;
5+
//// [|abstract|] makeSound(): void;
6+
////}
7+
////// Abstract class below should not get highlighted
8+
////abstract class Foo {
9+
//// abstract foo(): void;
10+
//// abstract bar(): void;
11+
////}
12+
13+
test.ranges().forEach(r => {
14+
goTo.position(r.start);
15+
verify.occurrencesAtPositionCount(test.ranges().length);
16+
17+
test.ranges().forEach(range => {
18+
verify.occurrencesAtPositionContains(range, false);
19+
});
20+
});

0 commit comments

Comments
 (0)