mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Added test for occurrences on abstract keyword
This commit is contained in:
parent
b33a35b122
commit
758abffd19
20
tests/cases/fourslash/getOccurrencesAbstract.ts
Normal file
20
tests/cases/fourslash/getOccurrencesAbstract.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////[|abstract|] class Animal {
|
||||
//// [|abstract|] walk(): void;
|
||||
//// [|abstract|] makeSound(): void;
|
||||
////}
|
||||
////// Abstract class below should not get highlighted
|
||||
////abstract class Foo {
|
||||
//// abstract foo(): void;
|
||||
//// abstract bar(): void;
|
||||
////}
|
||||
|
||||
test.ranges().forEach(r => {
|
||||
goTo.position(r.start);
|
||||
verify.occurrencesAtPositionCount(test.ranges().length);
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
verify.occurrencesAtPositionContains(range, false);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user