@@ -17162,7 +17162,7 @@ namespace ts {
17162
17162
17163
17163
function isArgumentsLocalBinding(node: Identifier): boolean {
17164
17164
if (!isGeneratedIdentifier(node)) {
17165
- node = getSourceTreeNodeOfType (node, isIdentifier);
17165
+ node = getParseTreeNode (node, isIdentifier);
17166
17166
if (node) {
17167
17167
return getReferencedValueSymbol(node) === argumentsSymbol;
17168
17168
}
@@ -17208,7 +17208,7 @@ namespace ts {
17208
17208
// When resolved as an expression identifier, if the given node references an exported entity, return the declaration
17209
17209
// node of the exported entity's container. Otherwise, return undefined.
17210
17210
function getReferencedExportContainer(node: Identifier, prefixLocals?: boolean): SourceFile | ModuleDeclaration | EnumDeclaration {
17211
- node = getSourceTreeNodeOfType (node, isIdentifier);
17211
+ node = getParseTreeNode (node, isIdentifier);
17212
17212
if (node) {
17213
17213
// When resolving the export container for the name of a module or enum
17214
17214
// declaration, we need to start resolution at the declaration's container.
@@ -17246,7 +17246,7 @@ namespace ts {
17246
17246
// When resolved as an expression identifier, if the given node references an import, return the declaration of
17247
17247
// that import. Otherwise, return undefined.
17248
17248
function getReferencedImportDeclaration(node: Identifier): Declaration {
17249
- node = getSourceTreeNodeOfType (node, isIdentifier);
17249
+ node = getParseTreeNode (node, isIdentifier);
17250
17250
if (node) {
17251
17251
const symbol = getReferencedValueSymbol(node);
17252
17252
if (symbol && symbol.flags & SymbolFlags.Alias) {
@@ -17305,7 +17305,7 @@ namespace ts {
17305
17305
// return the declaration of that entity. Otherwise, return undefined.
17306
17306
function getReferencedDeclarationWithCollidingName(node: Identifier): Declaration {
17307
17307
if (!isGeneratedIdentifier(node)) {
17308
- node = getSourceTreeNodeOfType (node, isIdentifier);
17308
+ node = getParseTreeNode (node, isIdentifier);
17309
17309
if (node) {
17310
17310
const symbol = getReferencedValueSymbol(node);
17311
17311
if (symbol && isSymbolOfDeclarationWithCollidingName(symbol)) {
@@ -17320,7 +17320,7 @@ namespace ts {
17320
17320
// Return true if the given node is a declaration of a nested block scoped entity with a name that either hides an
17321
17321
// existing name or might hide a name when compiled downlevel
17322
17322
function isDeclarationWithCollidingName(node: Declaration): boolean {
17323
- node = getSourceTreeNodeOfType (node, isDeclaration);
17323
+ node = getParseTreeNode (node, isDeclaration);
17324
17324
if (node) {
17325
17325
const symbol = getSymbolOfNode(node);
17326
17326
if (symbol) {
@@ -17332,7 +17332,7 @@ namespace ts {
17332
17332
}
17333
17333
17334
17334
function isValueAliasDeclaration(node: Node): boolean {
17335
- node = getSourceTreeNode (node);
17335
+ node = getParseTreeNode (node);
17336
17336
if (node === undefined) {
17337
17337
// A synthesized node comes from an emit transformation and is always a value.
17338
17338
return true;
@@ -17358,7 +17358,7 @@ namespace ts {
17358
17358
}
17359
17359
17360
17360
function isTopLevelValueImportEqualsWithEntityName(node: ImportEqualsDeclaration): boolean {
17361
- node = getSourceTreeNodeOfType (node, isImportEqualsDeclaration);
17361
+ node = getParseTreeNode (node, isImportEqualsDeclaration);
17362
17362
if (node === undefined || node.parent.kind !== SyntaxKind.SourceFile || !isInternalModuleImportEqualsDeclaration(node)) {
17363
17363
// parent is not source file or it is not reference to internal module
17364
17364
return false;
@@ -17384,7 +17384,7 @@ namespace ts {
17384
17384
}
17385
17385
17386
17386
function isReferencedAliasDeclaration(node: Node, checkChildren?: boolean): boolean {
17387
- node = getSourceTreeNode (node);
17387
+ node = getParseTreeNode (node);
17388
17388
if (isAliasSymbolDeclaration(node)) {
17389
17389
const symbol = getSymbolOfNode(node);
17390
17390
if (symbol && getSymbolLinks(symbol).referenced) {
@@ -17420,7 +17420,7 @@ namespace ts {
17420
17420
}
17421
17421
17422
17422
function getNodeCheckFlags(node: Node): NodeCheckFlags {
17423
- node = getSourceTreeNode (node);
17423
+ node = getParseTreeNode (node);
17424
17424
return node ? getNodeLinks(node).flags : undefined;
17425
17425
}
17426
17426
@@ -17551,7 +17551,7 @@ namespace ts {
17551
17551
17552
17552
function getReferencedValueDeclaration(reference: Identifier): Declaration {
17553
17553
if (!isGeneratedIdentifier(reference)) {
17554
- reference = getSourceTreeNodeOfType (reference, isIdentifier);
17554
+ reference = getParseTreeNode (reference, isIdentifier);
17555
17555
if (reference) {
17556
17556
const symbol = getReferencedValueSymbol(reference);
17557
17557
if (symbol) {
0 commit comments