* Support private identifiers in forgotten this codefix * Parse invalid private identifiers as identifiers and issue targeted errors * Update codefix * Remove accidentally deleted newline
23 lines
317 B
TypeScript
23 lines
317 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
////class K {
|
|
//// #value: number;
|
|
////
|
|
//// foo() {
|
|
//// #value/**/;
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: "Add 'this.' to unresolved variable",
|
|
newFileContent:
|
|
`class K {
|
|
#value: number;
|
|
|
|
foo() {
|
|
this.#value;
|
|
}
|
|
}`
|
|
});
|