-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
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 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
let me know when this is in a state you'd like a review! |
i aligned it with your changes to |
You need to do the rename in each file though, you are creating multiple
names symbols for the same thing in different places.
With my suggestion you could do the same refactor step on one single symbol
which 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 |
No description provided.