8000 refactor(ts-estree): simplify calculation of method location by armano2 · Pull Request #152 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content

refactor(ts-estree): simplify calculation of method location #152

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

Merged
merged 2 commits into from
Jan 27, 2019
Merged

refactor(ts-estree): simplify calculation of method location #152

merged 2 commits into from
Jan 27, 2019

Conversation

armano2
Copy link
Collaborator
@armano2 armano2 commented Jan 27, 2019

range and location of FunctionExpression in MethodDeclaration, SetAccessor, GetAccessor was calculated in different way, this change unifies this calculation and removes no longer used helper function findFirstMatchingToken.

we have already test cases for this code, and this change doesn't changes to AST.

@armano2 armano2 requested a review from JamesHenry January 27, 2019 06:10
@codecov
Copy link
codecov bot commented Jan 27, 2019

Codecov Report

Merging #152 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #152      +/-   ##
=========================================
+ Coverage    95.1%   95.2%   +0.09%     
=========================================
  Files          49      49              
  Lines        2493    2480      -13     
  Branches      373     371       -2     
=========================================
- Hits         2371    2361      -10     
+ Misses         73      71       -2     
+ Partials       49      48       -1
Impacted Files Coverage Δ
packages/typescript-estree/src/convert.ts 94.63% <100%> (+0.2%) ⬆️
packages/typescript-estree/src/node-utils.ts 96.46% <100%> (+0.4%) ⬆️

@armano2 armano2 self-assigned this Jan 27, 2019
@armano2 armano2 changed the title refactor(ts-estree): simplify methods location calculation refactor(ts-estree): simplify calculation of method location Jan 27, 2019
@JamesHenry JamesHenry merged commit 4954ed2 into typescript-eslint:master Jan 27, 2019
@armano2 armano2 deleted the function-expression-loc branch January 27, 2019 17:18
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
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.

2 participants
0