Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
refactor(parser): add ast types to parser#205
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
codecovbot commentedFeb 4, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ 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
|
@@ -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); |
There was a problem hiding this comment.
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 butvisit
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
let me know when this is in a state you'd like a review! |
armano2 commentedFeb 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
i aligned it with your changes to |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
You need to do the rename in each file though, you are creating multiplenames symbols for the same thing in different places.With my suggestion you could do the same refactor step on one single symbolwhich would be imported by name everywhere …On Tue, 5 Feb 2019 at 20:58, Armano ***@***.***> wrote: ***@***.**** commented on this pull request. ------------------------------ In packages/typescript-estree/src/parser.ts <#205 (comment)> : > @@ -14,8 +14,8 @@ import ts from 'typescript'; import convert from './ast-converter'; import { convertError } from './convert'; import { firstDefined } from './node-utils'; -import * as es from './typedefs'; -import { Extra, ParserOptions } from './parser-options'; +import * as TSESTree from './typedefs'; i renames all es to TSEStree, i'm unsure what editor you are using but in Intelij its right click -> refactor -> rename -> and its done xd — You are receiving this because your review was requested. Reply to this email directly, view it on GitHub <#205 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA29qxqPtTRd3syWAUQ5W4whnPBntm9Xks5vKjbegaJpZM4agcOV> . |
^ Whoops added the above comment via email and it didn’t link it to your comment above |
Uh oh!
There was an error while loading.Please reload this page.
No description provided.