Skip to content
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

Dig through nested csharp expressions for design time generation #8777

Merged
merged 4 commits into from
Jun 9, 2023

Conversation

333fred
Copy link
Member

@333fred 333fred commented May 30, 2023

Fixes #8467. We weren't looking through nested expressions in design type for type parameters, which broke the @typeparam syntax for type parameter values.

@333fred 333fred requested a review from a team as a code owner May 30, 2023 21:33
@333fred 333fred force-pushed the design-time-typeparam branch from ae774cf to db4ccfe Compare May 30, 2023 21:34
Fixes dotnet#8467. We weren't looking through nested expressions in design type for type parameters, which broke the `@typeparam` syntax for type parameter values.
@333fred 333fred force-pushed the design-time-typeparam branch from db4ccfe to 5803279 Compare May 30, 2023 21:35
@davidwengier
Copy link
Member

Would #8572 be related? Might this fix that?

@333fred
Copy link
Member Author

333fred commented May 30, 2023

No, that looks completely unrelated. That's a parsing issue, this is a designtime codegen issue.

333fred added 2 commits May 30, 2023 16:27
* upstream/main: (31 commits)
  Thread cancellation token
  Better criteria
  Add a debug assert for faults at debug time
  Do more work in setup
  Use ImmutableArray<T> in ProjectRazorJson
  Fix logic error in JsonDataWriter
  Tests
  Logging tweak
  Move file to the misc workspace when it is deleted, if it is open
  Use ImmutableArray<T> in ProjectWorkspaceState and IProjectSnapshot
  Reorganize files in MS.ANC.Razor.ProjectEngineHost
  Use ImmutableArray<T> in TagHelperResolutionResult and TagHelperDeltaResult
  Remove unused TagHelperResolutionResult.Diagnostics property
  Make JsonDataReader.ReadArray(...) methods consistent
  Clean up various JsonConverterCollectionExtensions classes
  Clean up ProjectSnapshotHandleProxyJsonConverter
  Clean up TagHelperResolutionResultJsonConverter
  Remove TagHelperDescriptorJsonConverter
  Clean up JsonConverterCollectionExtensions
  Clean up ProjectSnapshotHandleJsonConverter
  ...
@333fred
Copy link
Member Author

333fred commented May 31, 2023

@dotnet/razor-compiler for reviews please

@333fred
Copy link
Member Author

333fred commented Jun 2, 2023

@dotnet/razor-compiler for a second review.

@333fred
Copy link
Member Author

333fred commented Jun 6, 2023

@jaredpar or @jjonescz, please take a look.

@333fred 333fred enabled auto-merge (squash) June 8, 2023 18:24
@333fred 333fred merged commit cbe8755 into dotnet:main Jun 9, 2023
@333fred 333fred deleted the design-time-typeparam branch June 9, 2023 17:14
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.

Errors are thrown when specifying type parameter of a component
4 participants