Skip to content
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

Enhance function expression metadata #78

Closed
ekhaled opened this issue Aug 31, 2021 · 0 comments · Fixed by #79
Closed

Enhance function expression metadata #78

ekhaled opened this issue Aug 31, 2021 · 0 comments · Fixed by #79
Labels
enhancement New feature or request
Milestone

Comments

@ekhaled
Copy link
Contributor

ekhaled commented Aug 31, 2021

export let subtract = function(a, b){
  return a - b;
}

export let multiply = (a, b = 1) => {
	return a * b;
}

These VariableDeclaration items contain FunctionExpression and ArrowFunctionExpression within them.

We should treat these similar to FunctionDeclaration and make parameters and return values available in the output.

@alexprey alexprey added the enhancement New feature or request label Aug 31, 2021
@alexprey alexprey added this to the 4.0.0 milestone Aug 31, 2021
alexprey added a commit that referenced this issue Dec 14, 2021
fix #78: Add additional metadata for function expressions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants