mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Symbol for property assignments in Salsa/ES6 constructors
Previously no symbol at all was created, meaning that Salsa didn't track properties in ES6 code.
This commit is contained in:
14
tests/cases/fourslash/renameJsThisProperty03.ts
Normal file
14
tests/cases/fourslash/renameJsThisProperty03.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
////class C {
|
||||
//// constructor(y) {
|
||||
//// this./**/[|x|] = y;
|
||||
//// }
|
||||
////}
|
||||
////var t = new C(12);
|
||||
////t.[|x|] = 11;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);
|
||||
14
tests/cases/fourslash/renameJsThisProperty04.ts
Normal file
14
tests/cases/fourslash/renameJsThisProperty04.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// @allowJs: true
|
||||
// @Filename: a.js
|
||||
////class C {
|
||||
//// constructor(y) {
|
||||
//// this.[|x|] = y;
|
||||
//// }
|
||||
////}
|
||||
////var t = new C(12);
|
||||
////t./**/[|x|] = 11;
|
||||
|
||||
goTo.marker();
|
||||
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);
|
||||
Reference in New Issue
Block a user