-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Enable regex generator nullable reference types validation #80142
Conversation
Multiple times in the past we've audited the regex source generator for nullable reference type annotations, but as it was only compiled officially for netstandard2.0, any work we did to get it green eventually rotted. This follows the work done to enable also building a .NET Core target for the json generator to do the same for the regex generator. In doing so, I also took the opportunity to clean up the REGEXGENERATOR compilation constant.
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsMultiple times in the past we've audited the regex source generator for nullable reference type annotations, but as it was only compiled officially for netstandard2.0, any work we did to get it green eventually rotted. This follows the work done to enable also building a .NET Core target for the json generator to do the same for the regex generator. In doing so, I also took the opportunity to clean up the REGEXGENERATOR compilation constant.
|
@ViktorHofer, this currently fails with: |
...ibraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCharClass.cs
Show resolved
Hide resolved
...ibraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCharClass.cs
Show resolved
Hide resolved
...braries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexParseError.cs
Show resolved
Hide resolved
...libraries/System.ComponentModel.TypeConverter/src/System.ComponentModel.TypeConverter.csproj
Show resolved
Hide resolved
...libraries/System.Text.RegularExpressions/gen/System.Text.RegularExpressions.Generator.csproj
Show resolved
Hide resolved
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.
Other than the small comments, changes LGTM.
Multiple times in the past we've audited the regex source generator for nullable reference type annotations, but as it was only compiled officially for netstandard2.0, any work we did to get it green eventually rotted. This follows the work done to enable also building a .NET Core target for the json generator to do the same for the regex generator. In doing so, I also took the opportunity to clean up the REGEXGENERATOR compilation constant.