File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ namespace ts.Rename {
9292 function nodeIsEligibleForRename ( node : Node ) : boolean {
9393 switch ( node . kind ) {
9494 case SyntaxKind . Identifier :
95+ case SyntaxKind . PrivateIdentifier :
9596 case SyntaxKind . StringLiteral :
9697 case SyntaxKind . NoSubstitutionTemplateLiteral :
9798 case SyntaxKind . ThisKeyword :
Original file line number Diff line number Diff line change 1+ /// <reference path='fourslash.ts' />
2+
3+ ////class Foo {
4+ //// [|/**/#foo|] = 1;
5+ ////
6+ //// getFoo() {
7+ //// return this.#foo;
8+ //// }
9+ //// }
10+
11+ goTo . marker ( "" ) ;
12+ verify . renameInfoSucceeded ( "#foo" ) ;
Original file line number Diff line number Diff line change 1+ /// <reference path='fourslash.ts' />
2+
3+ ////class Foo {
4+ //// [|[|{| "contextRangeIndex": 0 |}#foo|] = 1;|]
5+ ////
6+ //// getFoo() {
7+ //// return this.[|#foo|];
8+ //// }
9+ //// }
10+
11+ verify . rangesWithSameTextAreRenameLocations ( "#foo" ) ;
You can’t perform that action at this time.
0 commit comments