-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Changes from 1 commit
0055014
405ce6a
c67d771
35672d2
88de445
322a61c
0d48f5a
413b85b
6406e1c
f24747d
290be82
48a7a21
2346121
ba42c34
47c6f90
dbcd9ff
5a376f2
12e5e65
dd2b6a7
4ff6d0f
8f2cc65
88f0053
7d31323
3432100
1888ac7
6028395
d90e587
452d6a5
7d82030
65fb9fd
436677a
5a3815a
3c5d140
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
|
||
namespace Microsoft.CodeAnalysis.CSharp.Symbols | ||
{ | ||
// PROTOTYPE: Remove and use separate IsRefScoped and IsValueScoped | ||
// properties on LocalSymbol and ParameterSymbol, to match the public API. | ||
[Flags] | ||
internal enum DeclarationScope : byte | ||
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. Have we considered other names for this? e.g. 'EscapeScope', 'ReferenceLifetime', ... It might be confusing that this refers to the "lifetime of variables referenced by this variable", not to the lifetime of this variable itself. Unifying the terms we use in the LifetimeAnnotationAttribute and in this type might be good. #Resolved 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. I think it would be good to align the terms used for this type and the corresponding attribute. 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. I've updated the |
||
{ | ||
|
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.
ref
is added conditionally. Perhaps we should also the option that controls that. #Closed