Skip to content

Support signature help for contextual parameter type#26022

Merged
2 commits merged into
masterfrom
signatureHelpContextual
Aug 6, 2018
Merged

Support signature help for contextual parameter type#26022
2 commits merged into
masterfrom
signatureHelpContextual

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jul 27, 2018

Fixes #25265

}

function getArgumentOrParameterListInfo(node: Node, sourceFile: SourceFile): { readonly list: Node, readonly argumentIndex: number, readonly argumentCount: number, readonly argumentsSpan: TextSpan } | undefined {
const info = getArgumentOrParameterListAndIndex(node, sourceFile);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not inline this function, as we would avoid unnecessary object creation and destructuring then.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's called in two places -- inlining it twice would increase code size which could also hurt performance..

@ghost ghost merged commit 937afab into master Aug 6, 2018
@ghost ghost deleted the signatureHelpContextual branch August 6, 2018 23:46
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant