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

15 lines
458 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: /a.js
////function f() {
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|]
////}
////f.prototype.setX = function() {
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|] = 1;|]
////}
////f.prototype.useX = function() { this.[|x|]; }
verify.singleReferenceGroup("(property) f.x: number", "x");