-
Notifications
You must be signed in to change notification settings - Fork 650
feat(rome_js_analyze): useTemplate #2803
Conversation
@ematipico , @leops , Would you mind helping with reviewing |
b366a82
to
e8ad271
Compare
@ematipico , I guess this pull request is ready to merge, I have addressed all issues. Would you mind having a look? |
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.
A couple of things before merging:
- could you rebase your fork? we fixed the CI failures and it should be fine now;
- could you add invalid cases where strings have spaces? Two/three should be fine I think (with some nested case)
An example:
0;
foo() + " bar"; // before
`${foo()} bar`; // after
53cf554
to
74083b5
Compare
I have rebased the main branch and added an extra test case. |
19693ae
to
11326a4
Compare
@xunilrj would you mind helping review this pr? |
reduced_exprs.extend(flatten_template_element_list(template.elements())?); | ||
} | ||
_ => { | ||
// drop the trivia of original expression make the generated `JsTemplate` a little nicer, if we don't do 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.
Can we drop trivia if they are comments?
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.
I think we should keep the comments.
…he semantic model
11326a4
to
b3fda9b
Compare
!bench_analyzer |
Analyzer Benchmark Results
|
Summary
Test Plan