Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Label abstract function expression nodes (fixes #80) #165

Closed

Conversation

soda0289
Copy link
Member

@soda0289 soda0289 commented Feb 20, 2017

In newer versions of TypeScript the FunctionExpression node contains a null body when they are abstract methods. This will cause some rules to fail as they expect FunctionExpression to have a body and is defined that way in the ESTree spec.

In newer versions of TypeScript the FunctionExpression node contains
a null body. This will cause some rules to fail as they expect
FunctionExpression to have a body and is defined that way in
the ESTree spec.
@eslintbot
Copy link

LGTM

@soda0289
Copy link
Member Author

We might not need to label FunctionExpression as TSAbstractFunctionExpression if we allow empty body functions to be labled as TSEmptyBodyFunctionExpression. This would allow for normal handling of functions by the eslint code analyzer and escope.

@JamesHenry
Copy link
Member

I'm so sorry it's taken so long to address these PRs @soda0289, so happy to have you on the team now! Let's take stock as soon as we merge in all the breaking changes and release v3!

@soda0289 soda0289 closed this May 6, 2017
@soda0289 soda0289 deleted the fix-abstract-method-node-type branch May 23, 2017 13:26
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.

None yet

4 participants