-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Support 'scoped' modifier for parameters and locals #61389
Merged
Merged
Changes from 23 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
0055014
Support 'scoped' modifier for parameters and locals
cston 405ce6a
Misc.
cston c67d771
Missing ConvertToKeyword()
cston 35672d2
Bind scope for lambda parameters
cston 88de445
PR feedback
cston 322a61c
Update parsing
cston 0d48f5a
Report error if scoped value is not ref struct
cston 413b85b
Fix tests
cston 6406e1c
More tests
cston f24747d
Add IsRefScoped and IsValueScoped to public API
cston 290be82
Fix build
cston 48a7a21
Parse 'scoped' as modifier regardless of -langversion
cston 2346121
Fix tests
cston ba42c34
Update DeclarationScope enum
cston 47c6f90
Additional tests
cston dbcd9ff
Misc.
cston 5a376f2
PR feedback
cston 12e5e65
Update tests
cston dd2b6a7
More tests
cston 4ff6d0f
PR feedback
cston 8f2cc65
Treat method as not supported if parameter has unexpected LifetimeAnn…
cston 88f0053
Update SymbolDisplay
cston 7d31323
PR feedback
cston 3432100
Disallow scoped in function pointer signatures
cston 1888ac7
PR feedback
cston 6028395
Filter out attribute from PEParameterSymbol.GetAttributes()
cston d90e587
Revert some public API changes
cston 452d6a5
Formatting
cston 7d82030
Fix tests
cston 65fb9fd
Revert public API changes
cston 436677a
Rename helper method
cston 5a3815a
Fix ScanExplicitlyTypedLambda()
cston 3c5d140
Filter out attribute unconditionally
cston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6775,6 +6775,9 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ | |
<data name="ERR_ListPatternRequiresLength" xml:space="preserve"> | ||
<value>List patterns may not be used for a value of type '{0}'. No suitable 'Length' or 'Count' property was found.</value> | ||
</data> | ||
<data name="ERR_ScopedRefAndRefStructOnly" xml:space="preserve"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
<value>The 'scoped' modifier can be used for refs and ref struct values only.</value> | ||
</data> | ||
|
||
<data name="WRN_UseDefViolationPropertySupportedVersion" xml:space="preserve"> | ||
<value>Auto-implemented property '{0}' is read before being explicitly assigned, causing a preceding implicit assignment of 'default'.</value> | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Were all call sites examined incase an explicit value should be passed? #Closed