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

Fix: Calculate constructor method range using node.parameters.pos (fixes #139) #140

Merged
merged 1 commit into from
Jan 14, 2017

Conversation

soda0289
Copy link
Member

The class constructor method node range can be calculated using the
node.parameters.pos variable instead of using result.range and offset.
This fixes issues with the space-before-function-paren rule in eslint.

@eslintbot
Copy link

Thanks for the pull request, @soda0289! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary must be 72 characters or shorter. Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

…int#139)

The class constructor method node range can be calculated using the
node.parameters.pos variable instead of using result.range and offset.
This fixes issues with the space-before-function-paren rule in eslint.
@soda0289 soda0289 force-pushed the fix-constructor-with-space branch from 43609bf to 86913c7 Compare January 13, 2017 04:10
@eslintbot
Copy link

LGTM

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. @JamesHenry want to take a look?

@JamesHenry
Copy link
Member

Awesome, thanks!

@JamesHenry JamesHenry merged commit 6312383 into eslint:master Jan 14, 2017
soda0289 added a commit to soda0289/typescript-eslint-parser that referenced this pull request Feb 1, 2017
soda0289 added a commit to soda0289/typescript-eslint-parser that referenced this pull request Feb 7, 2017
@soda0289 soda0289 deleted the fix-constructor-with-space branch May 23, 2017 13:27
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.

4 participants