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

refactor(parser): add ast types to parser #205

Merged
merged 16 commits into from
Feb 7, 2019
Merged

refactor(parser): add ast types to parser #205

merged 16 commits into from
Feb 7, 2019

Conversation

armano2
Copy link
Member

@armano2 armano2 commented Feb 4, 2019

No description provided.

@codecov
Copy link

codecov bot commented Feb 4, 2019

Codecov Report

Merging #205 into master will increase coverage by 0.08%.
The diff coverage is 99.39%.

@@            Coverage Diff             @@
##           master     #205      +/-   ##
==========================================
+ Coverage   96.57%   96.66%   +0.08%     
==========================================
  Files          51       52       +1     
  Lines        2455     2459       +4     
  Branches      370      370              
==========================================
+ Hits         2371     2377       +6     
+ Misses         42       41       -1     
+ Partials       42       41       -1
Impacted Files Coverage Δ
packages/eslint-plugin-tslint/src/index.ts 90% <ø> (ø) ⬆️
packages/parser/src/parser.ts 100% <ø> (ø) ⬆️
packages/typescript-estree/src/ts-estree.ts 100% <100%> (ø)
packages/typescript-estree/src/node-utils.ts 95.36% <100%> (ø) ⬆️
packages/typescript-estree/src/convert.ts 97.27% <100%> (ø) ⬆️
packages/typescript-estree/src/parser.ts 93.1% <100%> (+0.12%) ⬆️
packages/typescript-estree/src/convert-comments.ts 96% <100%> (ø) ⬆️
packages/parser/src/analyze-scope.ts 95.66% <87.5%> (+0.78%) ⬆️

@@ -214,7 +220,7 @@ class Referencer extends OriginalReferencer {
this.visit(node.superTypeParameters);
}
if (node.implements) {
this.visit(node.implements);
node.implements.forEach(this.visit, this);
Copy link
Member Author

@armano2 armano2 Feb 4, 2019

Choose a reason for hiding this comment

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

this is actual issue, implements in classes is a array of nodes but visit expect that you provide node iteslf

i have to design a way to test visiting
scope analysis snapshots does not contain information about implements, its part of "type scope", and its not yet implemented

see #19

@armano2 armano2 added the DO NOT MERGE PRs which should not be merged yet label Feb 4, 2019
@armano2 armano2 requested a review from bradzacher February 4, 2019 17:27
@armano2 armano2 removed the DO NOT MERGE PRs which should not be merged yet label Feb 4, 2019
@armano2 armano2 removed the request for review from bradzacher February 4, 2019 22:08
@armano2 armano2 self-assigned this Feb 5, 2019
@armano2 armano2 requested review from JamesHenry and removed request for JamesHenry February 5, 2019 03:44
@armano2 armano2 added blocked by another PR PRs which are ready to go but waiting on another PR and removed blocked by another PR PRs which are ready to go but waiting on another PR labels Feb 5, 2019
@armano2 armano2 requested a review from JamesHenry February 5, 2019 21:25
@bradzacher
Copy link
Member

let me know when this is in a state you'd like a review!

@armano2
Copy link
Member Author

armano2 commented Feb 6, 2019

i aligned it with your changes to eslint-plugin, and its ready

packages/typescript-estree/src/parser.ts Outdated Show resolved Hide resolved
packages/parser/src/analyze-scope.ts Outdated Show resolved Hide resolved
@JamesHenry
Copy link
Member

JamesHenry commented Feb 6, 2019 via email

@JamesHenry
Copy link
Member

^ Whoops added the above comment via email and it didn’t link it to your comment above

@JamesHenry JamesHenry merged commit 7cd3bc2 into typescript-eslint:master Feb 7, 2019
@armano2 armano2 deleted the parser-types branch February 7, 2019 01:27
@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.

3 participants