Add more tests and comments

This commit is contained in:
zhengbli 2016-01-28 11:26:32 -08:00
parent 5ced4c401f
commit bf897c2939
9 changed files with 65 additions and 3 deletions

View File

@ -15367,6 +15367,8 @@ namespace ts {
case SpecialPropertyAssignmentKind.ThisProperty:
case SpecialPropertyAssignmentKind.ModuleExports:
return getSymbolOfNode(entityName.parent.parent);
default:
// Fall through if it is not a special property assignment
}
}

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts'/>
// @allowJs: true
// @Filename: a.js
////exports.[|area|] = function (r) { return r * r; }
// @Filename: b.ts
////import { [|area|] } from './a';
////var t = /**/[|area|](10);
goTo.marker();
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts'/>
// @allowJs: true
// @Filename: a.js
////exports./**/[|area|] = function (r) { return r * r; }
// @Filename: b.ts
////import { [|area|] } from './a';
////var t = [|area|](10);
goTo.marker();
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -9,4 +9,4 @@
////var t = mod./**/[|area|](10);
goTo.marker();
verify.renameLocations(false, false);
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts'/>
// @allowJs: true
// @Filename: a.js
////exports./**/[|area|] = function (r) { return r * r; }
// @Filename: b.js
////var mod = require('./a');
////var t = mod.[|area|](10);
goTo.marker();
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -9,4 +9,4 @@
////t./**/[|x|] = 11;
goTo.marker();
verify.renameLocations(false, false);
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts'/>
// @allowJs: true
// @Filename: a.js
////function bar() {
////}
////bar.prototype./**/[|x|] = 10;
////var t = new bar();
////t.[|x|] = 11;
goTo.marker();
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -9,4 +9,4 @@
////t./**/[|x|] = 11;
goTo.marker();
verify.renameLocations(false, false);
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);

View File

@ -0,0 +1,12 @@
/// <reference path='fourslash.ts'/>
// @allowJs: true
// @Filename: a.js
////function bar() {
//// this./**/[|x|] = 10;
////}
////var t = new bar();
////t.[|x|] = 11;
goTo.marker();
verify.renameLocations( /*findInStrings*/ false, /*findInComments*/ false);