mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Added tests for const modifiers.
This commit is contained in:
parent
2f7db61f7c
commit
ce3a91c186
16
tests/cases/fourslash/getOccurrencesConst02.ts
Normal file
16
tests/cases/fourslash/getOccurrencesConst02.ts
Normal file
@ -0,0 +1,16 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////module m {
|
||||
//// declare [|const|] x;
|
||||
//// declare [|const|] enum E {
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////declare [|const|] x;
|
||||
////declare [|const|] enum E {
|
||||
////}
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
goTo.position(range.start);
|
||||
verify.occurrencesAtPositionCount(0);
|
||||
});
|
||||
16
tests/cases/fourslash/getOccurrencesConst03.ts
Normal file
16
tests/cases/fourslash/getOccurrencesConst03.ts
Normal file
@ -0,0 +1,16 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////module m {
|
||||
//// export [|const|] x;
|
||||
//// export [|const|] enum E {
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////export [|const|] x;
|
||||
////export [|const|] enum E {
|
||||
////}
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
goTo.position(range.start);
|
||||
verify.occurrencesAtPositionCount(0);
|
||||
});
|
||||
12
tests/cases/fourslash/getOccurrencesConst04.ts
Normal file
12
tests/cases/fourslash/getOccurrencesConst04.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////export const class C {
|
||||
//// private static [|const|] foo;
|
||||
//// constructor(public [|const|] foo) {
|
||||
//// }
|
||||
////}
|
||||
|
||||
test.ranges().forEach(range => {
|
||||
goTo.position(range.start);
|
||||
verify.occurrencesAtPositionCount(0);
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user