diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 8047c31930e..8110f8fd17a 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1745,6 +1745,7 @@ namespace ts { export type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression; export type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression; + /* @internal */ export type AccessExpression = PropertyAccessExpression | ElementAccessExpression; export interface PropertyAccessExpression extends MemberExpression, NamedDeclaration { diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index fe0d8b84527..710ff6a6710 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -4590,6 +4590,10 @@ namespace ts { || kind === SyntaxKind.JSDocFunctionType || kind === SyntaxKind.JSDocVariadicType; } + + export function isAccessExpression(node: Node): node is AccessExpression { + return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression; + } } namespace ts { @@ -5586,10 +5590,6 @@ namespace ts { return node.kind === SyntaxKind.ElementAccessExpression; } - export function isAccessExpression(node: Node): node is AccessExpression { - return node.kind === SyntaxKind.PropertyAccessExpression || node.kind === SyntaxKind.ElementAccessExpression; - } - export function isCallExpression(node: Node): node is CallExpression { return node.kind === SyntaxKind.CallExpression; }