-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: CallerArgumentExpressionAttribute (#51952)
* Initial work for caller argument expression * Add resources for caller argument expression diagnostics * Account for swapped named arguments * Add few tests * Complete implementation in PEParameterSymbol * Update tests * Produce warning for invalid parameter name * Run generate-compiler-code.cmd * Fix out of range exception and add more tests * Extract DecodeCallerArgumentExpressionAttribute extension * Fix freeing twice * Fix comments * Simplify PEParameterSymbol * Fix NullableWarnings test * Add test for two parameters referring to each other * Use warning level 1 * Add test for extension methods and remove addressed comments * Add title resources for new warnings * Use static lambda * Add PROTOTYPE comment * Add trivia test and skip PEVerification * Address feedback * Fix resources * Simplify based on @AlekseyTs feedback * Pass array builder instead of creating a temporary immutable array * Check feature availability on language version * Add "semantic check" comment * Add missing IDS_Feature resource * Don't check feature availability on attribute application * Remove helper that's used only once * Cleanup * Don't check generatedDiagnostics * Use LanguageVersion.Preview in tests * Cleanup resx * Use TestOptions.RegularPreview * ConditionalFact[typeof(CoreClrOnly)] * Add assertion * Update tests * Update test * Adjust NullableWarnings test * Address feedback * Simplify * Fix formatting * Address feedback
- Loading branch information
1 parent
20777d6
commit 52f6db1
Showing
33 changed files
with
1,513 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/Compilers/CSharp/Portable/Generated/ErrorFacts.Generated.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.