-
Notifications
You must be signed in to change notification settings - Fork 25
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
Support Modifiers #44
Conversation
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.
In general, we should not propagate the idea that there are separate namespaces in handlebars files. We should assume there is a single unified list of available "invokable" things, which is made up of all helpers, modifiers, and components.
tldr; I don't think we need to track the first path expression within a modifier 😄
what do you mean by this / how does this PR have that idea?
I almost did that approach, the same way helpers and computeds are done right now, but found that the telemetry-helpers' default info collector doesn't do modifiers, so I came up with this approach.
Tobias was saying the right thing to do would be to add some behavior to glimmer/syntax so that Path nodes can know what they are / have consumers of the visitor pattern not have to do what's being done in this codemod with enter/exit 🤷♂️ |
We should fix it! |
Ya, totally agree. I think that work would be great, but I don't think we need that for this specific PR. |
This passes locally, so maybe the failure is cache related? |
@tylerturdenpants any chance you could take a gander at this? I'm confused why it seems like the test running on 3.13 doesn't match my machine -- so, I wonder if maybe my machine is somehow broken to the point of "working", and the broken state in CI is correct. |
Ya. I’ll take a look at it today. Going to work on a few telemetry related things. |
I guess we can close this now, since #62 should've added support for modifiers 🎉 |
Resolves #42