-
Notifications
You must be signed in to change notification settings - Fork 217
Compiler: Add Parent property to nested tag helper objects #11953
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
Compiler: Add Parent property to nested tag helper objects #11953
Conversation
- Add AllowedChildTagDescriptor.Parent -> TagHelperDescriptor - Add BoundAttributeDescriptor.Parent -> TagHelperDescriptor - Add BoundAttributeParamterDescriptor.Parent -> BoundAttributeDescriptor - Add TagMatchingRuleDescriptor.Parent -> TagHelperDescriptor - Add RequiredAttributeDescriptor.Parent -> TagMatchingRuleDescriptor
- Add nullability annotations - Use ArgHelper throughout
This can be retrieved via the Parent property.
This can be retrieved via the Parent property
davidwengier
left a comment
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.
Tooling looks good.
Do you remember if we still need a dual insertion for serialization format changes, for VS Code?
I don't recall. I was wondering about that too. I don't think we do because we deploy both RZLS and MS.VisualStudioCore.RazorExtension to VS Code at the same time and no longer have an EA from Razor to Roslyn. However, I wasn't deeply involved in that big EA change. |
|
Thats what I think too, but I think is the first test of the theory. Will be easy enough to find out :) |
Important
This affects the Razor SDK. When the compiler flows to the .NET SDK, this commit will be needed: dotnet/sdk@a9d343d.
Add Parent properties to all of the nested tag helper objects:
AllowedChildTagDescriptor.Parent->TagHelperDescriptorBoundAttributeDescriptor.Parent->TagHelperDescriptorBoundAttributeParameterDescriptor.Parent->BoundAttributeDescriptorTagMatchingRuleDescriptor.Parent->TagHelperDescriptorRequiredAttributeDescriptor.Parent->TagMatchingRuleDescriptorThis removes the need for
BoundAttributeandBoundAttributeParameterDescriptorto duplicate theKindproperty fromTagHelperDescriptor.