Skip to content

Conversation

@davidwengier
Copy link
Member

@davidwengier davidwengier commented Mar 27, 2023

Fixes #8498

When I did #7974 I failed to allow for attributes that were not added to the intermediate tree during lowering, which resulted in missing source mappings and code gen, and hence lack of IDE functionality.

This fixes that by generating intermediate nodes for these attributes, but also flags them as being solely for design time help so runtime codegen is not changed. The intermediate tree does get a few more nodes, and I could make the Accept method a no-op for these nodes, so tree visitors are unaffected, but that seemed a bit smelly, and ultimately there weren't too many new spots where these new nodes had to be skipped. Let me know if you disagree.

Again, commit-at-a-time makes the most sense, just to see logic changes versus test baseline changes.

This fixes the issue with `@bind-Value:get` not working correctly, I just missed a couple of constructors in my last PR for some reason.
…eneration

These don't have any job at runtime, or even most of design time, but help with generating property access code that represents specifying the attributes.
Only the intermediate tree has changed, which is what we want
Tree, mappings and code gen have all changed.
@davidwengier davidwengier requested a review from a team as a code owner March 27, 2023 05:27
@jjonescz jjonescz added the area-compiler Umbrella for all compiler issues label Mar 27, 2023
@davidwengier
Copy link
Member Author

@dotnet/razor-compiler for second review, and to see how you feel about a slightly larger tree :)

@davidwengier davidwengier force-pushed the FixComponentPropertiesWithSuffixes branch from 553b23a to 72281e7 Compare April 17, 2023 11:54
@davidwengier
Copy link
Member Author

Ping @dotnet/razor-compiler for a 2nd review

@davidwengier
Copy link
Member Author

Ping @dotnet/razor-compiler PTAL

@davidwengier davidwengier merged commit 4c1ff7c into dotnet:main May 3, 2023
@davidwengier davidwengier deleted the FixComponentPropertiesWithSuffixes branch May 3, 2023 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-compiler Umbrella for all compiler issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bound component properties with suffixes aren't mapped correctly

3 participants