-
-
Notifications
You must be signed in to change notification settings - Fork 75
New: Add type arguments and parameters to AST #183
Conversation
Thanks for the pull request, @Pajn! I took a look to make sure it's ready for merging and found some changes are needed:
Can you please update the pull request to address these? (More information can be found in our pull request guide.) |
1ce95b8
to
af92891
Compare
LGTM |
I think you will want to use I'm not a 100% sure thou. @JamesHenry do you know why there are two functions it seems one is only used for class declarations? The tests look fine to me. |
LGTM |
I understood it as I realized that primitive types did not work, which is in my second commit. I'm unsure if I should include that in this PR or not. But I guess the above confusion must be solved first to even see if I modified the correct function :) |
eb2905d
to
54854b2
Compare
LGTM |
54854b2
to
58c8377
Compare
LGTM |
@Pajn you could be correct. I just saw that Reading the code I don't think the new expression |
I also think class declarations do not record the generic type argument, only the implement clauses do. For example: class A<T> {
} |
LGTM |
47fb44f
to
97f5c5f
Compare
LGTM |
Good catches! Might as well get as many cases as possible fixed. |
Nice looks good! |
97f5c5f
to
c14bd58
Compare
LGTM |
This LGTM, thanks @Pajn! It just needs to be rebased against master. You could also squash the commits down into a single one whilst you do that. |
c14bd58
to
cf7000a
Compare
LGTM |
Done. I was unsure on New/Fix again, I can change to what you prefer. I must say thank you to both of you for being both helpful and very responsive on these PRs! |
For prettier/prettier/issues/13 this information must be preserved in the AST.
I had no idea how to create the test so I just did what seemed reasonable but please correct me if it's wrong.