Open mauryapari opened 2 days ago
Moved code into respective functions Added code to check if tag is in same line as child and append closing tag based on it
Related to issue #39
Notes for reviewer:
return lastchild.sourceLocation.endline === node.endtag.endline;
If no children, then check it’s own start tag endline,
return node.starttag.endline == node.endtag.endline.
For the specific test case used below, the AST shows that the last input tag's startLine and endLine values are 2, which matches the label tag.
This behavior occurs even though the two tags are on separate lines.
I also tried importing the test case from a .vue file, but the source code locations remained the same.
@TheJaredWilcurt, Could you please review this behavior?
Let me know if I am overlooking anything or if there's an issue with the AST interpretation.
Checklist:
Moved code into respective functions Added code to check if tag is in same line as child and append closing tag based on it
Related to issue #39
Notes for reviewer:
If no children, then check it’s own start tag endline,
For the specific test case used below, the AST shows that the last input tag's startLine and endLine values are 2, which matches the label tag.
This behavior occurs even though the two tags are on separate lines.
I also tried importing the test case from a .vue file, but the source code locations remained the same.
@TheJaredWilcurt, Could you please review this behavior?
Let me know if I am overlooking anything or if there's an issue with the AST interpretation.
Checklist: