TypeScript/tests/cases/fourslash/findAllRefsConstructorFunctions.ts

15 lines
458 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: /a.js
////function f() {
2019-06-13 21:25:02 +02:00
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|]
////}
////f.prototype.setX = function() {
2019-06-13 21:25:02 +02:00
//// [|this.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|] = 1;|]
////}
////f.prototype.useX = function() { this.[|x|]; }
2019-06-06 18:49:31 +02:00
verify.singleReferenceGroup("(property) f.x: number", "x");