mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge branch 'getOccurrences' into getOccurrencesLoopBreakContinue
Conflicts: src/services/services.ts
This commit is contained in:
32
tests/cases/fourslash/getOccurrencesConstructor.ts
Normal file
32
tests/cases/fourslash/getOccurrencesConstructor.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////class C {
|
||||
//// [|const/**/ructor|]();
|
||||
//// [|constructor|](x: number);
|
||||
//// [|constructor|](y: string, x: number);
|
||||
//// [|constructor|](a?: any, ...r: any[]) {
|
||||
//// if (a === undefined && r.length === 0) {
|
||||
//// return;
|
||||
//// }
|
||||
////
|
||||
//// return;
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////class D {
|
||||
//// constructor(public x: number, public y: number) {
|
||||
//// }
|
||||
////}
|
||||
|
||||
test.ranges().forEach(r => {
|
||||
goTo.position(r.start);
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
verify.occurrencesAtPositionContains(range, false);
|
||||
});
|
||||
});
|
||||
|
||||
goTo.marker();
|
||||
test.ranges().forEach(range => {
|
||||
verify.occurrencesAtPositionContains(range, false);
|
||||
});
|
||||
32
tests/cases/fourslash/getOccurrencesConstructor2.ts
Normal file
32
tests/cases/fourslash/getOccurrencesConstructor2.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////class C {
|
||||
//// constructor();
|
||||
//// constructor(x: number);
|
||||
//// constructor(y: string, x: number);
|
||||
//// constructor(a?: any, ...r: any[]) {
|
||||
//// if (a === undefined && r.length === 0) {
|
||||
//// return;
|
||||
//// }
|
||||
////
|
||||
//// return;
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////class D {
|
||||
//// [|con/**/structor|](public x: number, public y: number) {
|
||||
//// }
|
||||
////}
|
||||
|
||||
test.ranges().forEach(r => {
|
||||
goTo.position(r.start);
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
verify.occurrencesAtPositionContains(range, false);
|
||||
});
|
||||
});
|
||||
|
||||
goTo.marker();
|
||||
test.ranges().forEach(range => {
|
||||
verify.occurrencesAtPositionContains(range, false);
|
||||
});
|
||||
Reference in New Issue
Block a user