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:
Nathan Shively-Sanders
2016-05-26 12:42:35 -07:00
parent 27a1e91268
commit abfcdd2cfd
3 changed files with 41 additions and 5 deletions

View 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);

View 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);