TypeScript/tests/cases/fourslash/referencesForStatic.ts
2019-06-13 12:41:21 -07:00

34 lines
795 B
TypeScript

/// <reference path='fourslash.ts'/>
// Reference a class static.
// @Filename: referencesOnStatic_1.ts
////var n = 43;
////
////class foo {
//// [|static [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}n|] = '';|]
////
//// public bar() {
//// foo.[|{| "isWriteAccess": true |}n|] = "'";
//// if(foo.[|n|]) {
//// var x = foo.[|n|];
//// }
//// }
////}
////
////class foo2 {
//// private x = foo.[|n|];
//// constructor() {
//// foo.[|{| "isWriteAccess": true |}n|] = x;
//// }
////
//// function b(n) {
//// n = foo.[|n|];
//// }
////}
// @Filename: referencesOnStatic_2.ts
////var q = foo.[|n|];
verify.singleReferenceGroup("(property) foo.n: string", "n");