-
Notifications
You must be signed in to change notification settings - Fork 0
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
Output ambiguity #12
Comments
I'm not sure I understand what's ambiguous here. Can you elaborate, please? |
In the first example: <input value={foo}/>
<input value="{foo}/"> From an AST perspective what you get in both case is exactly the same ( For example, imagine we want to error out in any attributeValue that is non quoted. At the AST level we won't know if you did quoted or unquoted (be lost that information already), therefore ambiguous for this particular case. |
Hmm, I guess adding |
@inikulin An interesting though:
Input:
Output:
Although the transformation is correct from a spec perspective, it generates a little bit of ambiguity from a developer semantics perspective.
How do you feel about adding some metadata to the AttributeNode (which we collect already as we generate tokens) such as for this example
valueState: single-quotes|double-quotes|unquoted
I think via
location
you could potentially figure out, but is not really straight forward tough.The text was updated successfully, but these errors were encountered: