You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is OK unless you ask astring to parse the TemplateElement node individually. In that case, astring will crash as it doesn't have a specific method for this node type.
I wonder if this was an oversight or if it is intentional. Should I just write my own generator for TemplateElement?
Thank you very much.
The text was updated successfully, but these errors were encountered:
Hello,
The structure of
TemplateLiteral
is as follows:The elements of
quasis
areTemplateElement
nodes. When parsingTemplateLiteral
nodes, astring accesses the quasis' content directly:astring/src/astring.js
Line 686 in 21f5c2c
This is OK unless you ask astring to parse the
TemplateElement
node individually. In that case, astring will crash as it doesn't have a specific method for this node type.I wonder if this was an oversight or if it is intentional. Should I just write my own generator for
TemplateElement
?Thank you very much.
The text was updated successfully, but these errors were encountered: