34 lines
No EOL
837 B
TypeScript
34 lines
No EOL
837 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////let x = {
|
|
//// a() {
|
|
//// return [|s/**/uper|].b();
|
|
//// },
|
|
//// b() {
|
|
//// return [|super|].a();
|
|
//// },
|
|
//// c: function () {
|
|
//// return [|super|].a();
|
|
//// }
|
|
//// d: () => [|super|].b();
|
|
////}
|
|
|
|
function checkRange(r: FourSlashInterface.Range, expectedOccurences: FourSlashInterface.Range[]): void {
|
|
goTo.position(r.start);
|
|
if (expectedOccurences.length) {
|
|
for (const expected of expectedOccurences) {
|
|
verify.occurrencesAtPositionContains(expected);
|
|
}
|
|
}
|
|
else {
|
|
verify.occurrencesAtPositionCount(0);
|
|
}
|
|
}
|
|
|
|
let [r0, r1, r2, r3] = test.ranges();
|
|
|
|
checkRange(r0, [r0, r1]);
|
|
checkRange(r1, [r0, r1]);
|
|
checkRange(r0, [r0, r1]);
|
|
checkRange(r2, []);
|
|
checkRange(r3, []); |