getParameters for func 'a => console.log(a)' error #4158
Labels
inactive
Issue has not had recent required feedback
needs-more-info
Needs further information, steps, details, etc.
Description
const comma = ',';
const equals = '=';
const openBrace = '{';
const openParen = '(';
const closeParen = ')';
const arrow = '=>';
const fnBodyRegex = /(([\s\S]))/;
const fnBodyStripCommentsRegex = /(/*([\s\S]?)*/|([^:]|^)//(.)$)/gm;
const fnBodyStripParamDefaultValueRegex = /\s?=.$/;
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
export function getParameters(fn: Function): string[] {
if (typeof fn !== 'function') {
throw new Error('Not supported');
}
}
GitLens Version
main
VS Code Version
No response
Git Version
No response
Logs, Screenshots, Screen Captures, etc
No response
The text was updated successfully, but these errors were encountered: