Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit340e8cd

Browse files
committed
find reference at begin of constructor
1 parent8414a96 commit340e8cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/services/refactors/generateGetAccessorAndSetAccessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ namespace ts.refactor.generateGetAccessorAndSetAccessor {
211211
if(!constructor.body)return;
212212
const{ file, program, cancellationToken}=context;
213213

214-
constreferenceEntries=mapDefined(FindAllReferences.getReferenceEntriesForNode(-1,originalName,program,[file],cancellationToken),entry=>(
214+
constreferenceEntries=mapDefined(FindAllReferences.getReferenceEntriesForNode(constructor.pos,originalName,program,[file],cancellationToken),entry=>(
215215
(entry.type==="node"&&rangeContainsRange(constructor,entry.node)&&isIdentifier(entry.node)&&isWriteAccess(entry.node)) ?entry.node :undefined
216216
));
217217

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp