Skip to content

Conversation

@fisker
Copy link
Member

@fisker fisker commented Jun 4, 2024

Description

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

return "null";

case "VarHead": // Handled in `printPathExpression`
case "ThisHead": // Handled in `printPathExpression`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with these syntaxes, but it looks like the handling of the ThisHead node isn't included in the printPathExpression diff. What's going on?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VarHead or ThisHead are head of PathExpression, they can't go through print, because we need the original text to check isPathExpressionPartNeedBrackets

@sosukesuzuki
Copy link
Member

Could you rename this PR title to more understandable?

@fisker fisker changed the title Fix a TODO Print AtHead node from glimmer via print() Jun 4, 2024
@fisker fisker merged commit 450b178 into prettier:main Jun 4, 2024
@fisker fisker deleted the glimmer branch June 4, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants