Skip to content

Clarify that some node types never have name defined. #15567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,12 @@ namespace ts {
}

export interface CallSignatureDeclaration extends SignatureDeclaration, TypeElement {
name?: undefined;
kind: SyntaxKind.CallSignature;
}

export interface ConstructSignatureDeclaration extends SignatureDeclaration, TypeElement {
name?: undefined;
kind: SyntaxKind.ConstructSignature;
}

Expand Down Expand Up @@ -815,6 +817,7 @@ namespace ts {
}

export interface ConstructorDeclaration extends FunctionLikeDeclaration, ClassElement {
name?: undefined;
kind: SyntaxKind.Constructor;
parent?: ClassDeclaration | ClassExpression;
body?: FunctionBody;
Expand Down Expand Up @@ -847,6 +850,7 @@ namespace ts {
export type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration;

export interface IndexSignatureDeclaration extends SignatureDeclaration, ClassElement, TypeElement {
name?: undefined;
kind: SyntaxKind.IndexSignature;
parent?: ClassDeclaration | ClassExpression | InterfaceDeclaration | TypeLiteralNode;
}
Expand Down