TypeScript/tests/cases/fourslash/getOccurrencesClassExpressionStaticThis.ts
2017-01-18 13:55:31 -08:00

50 lines
1.1 KiB
TypeScript

/// <reference path='fourslash.ts' />
////var x = class C {
//// public x;
//// public y;
//// public z;
//// public staticX;
//// constructor() {
//// this;
//// this.x;
//// this.y;
//// this.z;
//// }
//// foo() {
//// this;
//// () => this;
//// () => {
//// if (this) {
//// this;
//// }
//// }
//// function inside() {
//// this;
//// (function (_) {
//// this;
//// })(this);
//// }
//// return this.x;
//// }
////
//// static bar() {
//// [|this|];
//// [|this|].staticX;
//// () => [|this|];
//// () => {
//// if ([|this|]) {
//// [|this|];
//// }
//// }
//// function inside() {
//// this;
//// (function (_) {
//// this;
//// })(this);
//// }
//// }
////}
verify.rangesAreOccurrences(false);