Skip to content

Commit 6327339

Browse files
committed
No public API changes
1 parent 43d92f0 commit 6327339

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ namespace ts {
17451745
export type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression;
17461746
export type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression;
17471747

1748+
/* @internal */
17481749
export type AccessExpression = PropertyAccessExpression | ElementAccessExpression;
17491750

17501751
export interface PropertyAccessExpression extends MemberExpression, NamedDeclaration {

src/compiler/utilities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4590,6 +4590,10 @@ namespace ts {
45904590
|| kind === SyntaxKind.JSDocFunctionType
45914591
|| kind === SyntaxKind.JSDocVariadicType;
45924592
}
4593+
4594+
export function isAccessExpression(node: Node): node is AccessExpression {
4595+
return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression;
4596+
}
45934597
}
45944598

45954599
namespace ts {
@@ -5586,10 +5590,6 @@ namespace ts {
55865590
return node.kind === SyntaxKind.ElementAccessExpression;
55875591
}
55885592

5589-
export function isAccessExpression(node: Node): node is AccessExpression {
5590-
return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression;
5591-
}
5592-
55935593
export function isCallExpression(node: Node): node is CallExpression {
55945594
return node.kind === SyntaxKind.CallExpression;
55955595
}

0 commit comments

Comments
 (0)