TypeScript/tests/cases/fourslash/getOccurrencesSetAndGet3.ts
Daniel Rosenwasser c61be112d9 getOccurrences for 'get' and 'set' keywords.
'get'/'set' keywords are highlighted for analogous accessors.
2014-09-29 14:38:03 -07:00

35 lines
662 B
TypeScript

/// <reference path="fourslash.ts" />
////class Foo {
//// set bar(b: any) {
//// }
////
//// public get bar(): any {
//// return undefined;
//// }
////
//// public set set(s: any) {
//// }
////
//// public get set(): any {
//// return undefined;
//// }
////
//// public [|set|] get(g: any) {
//// }
////
//// public [|get|] get(): any {
//// return undefined;
//// }
////}
test.ranges().forEach(r => {
goTo.position(r.start);
test.ranges().forEach(range => {
verify.occurrencesAtPositionContains(range, false);
});
verify.occurrencesAtPositionCount(test.ranges().length);
});