Skip to content

Enable nullable analysis in LayoutAttribute.Partial.cs - #12326

Draft
jonathanpeppers with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-finder-enable-nullable-reference-types-again
Draft

Enable nullable analysis in LayoutAttribute.Partial.cs#12326
jonathanpeppers with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-finder-enable-nullable-reference-types-again

Conversation

Copilot AI commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

LayoutAttribute.FromTypeDefinition() can legitimately return null when no layout attribute exists, but its file disabled nullable analysis.

  • Enable nullable reference type analysis for the file.
  • Mark the factory return type and SingleOrDefault() result as nullable.
  • Preserve the existing null-handling behavior.

Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable nullable reference types in LayoutAttribute.Partial.cs Enable nullable analysis in LayoutAttribute.Partial.cs Aug 8, 2026
Copilot AI requested a review from jonathanpeppers August 8, 2026 02:44
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.

[fix-finder] Enable nullable reference types in LayoutAttribute.Partial.cs

2 participants