Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compilers/Core/Portable/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Microsoft.CodeAnalysis.Diagnostics.SymbolStartAnalysisContext.FilterTree.get ->
Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext.FilterSpan.get -> Microsoft.CodeAnalysis.Text.TextSpan?
Microsoft.CodeAnalysis.Diagnostics.SyntaxNodeAnalysisContext.FilterTree.get -> Microsoft.CodeAnalysis.SyntaxTree!
Microsoft.CodeAnalysis.Diagnostics.SyntaxTreeAnalysisContext.FilterSpan.get -> Microsoft.CodeAnalysis.Text.TextSpan?
Microsoft.CodeAnalysis.RefKind.RefReadOnlyParameter = 5 -> Microsoft.CodeAnalysis.RefKind
Microsoft.CodeAnalysis.RefKind.RefReadOnlyParameter = 4 -> Microsoft.CodeAnalysis.RefKind
static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode>.explicit operator Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode!>(Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.SyntaxNode!> nodes) -> Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode!>
static Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode>.op_Implicit(Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.SyntaxNode!> nodes) -> Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode!>
static Microsoft.CodeAnalysis.SyntaxList<TNode>.explicit operator Microsoft.CodeAnalysis.SyntaxList<TNode!>(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.SyntaxNode!> nodes) -> Microsoft.CodeAnalysis.SyntaxList<TNode!>
Expand Down
12 changes: 6 additions & 6 deletions src/Compilers/Core/Portable/Symbols/RefKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ public enum RefKind : byte
/// </summary>
RefReadOnly = 3,

// NOTE: There is an additional value of this enum type - RefKindExtensions.StrictIn == RefKind.In + 1
// It is used internally during lowering.
// Consider that when adding values or changing this enum in some other way.

/// <summary>
/// Indicates a "ref readonly" parameter.
/// </summary>
RefReadOnlyParameter = 5, // PROTOTYPE: Change to 4 to make public values sequential.
RefReadOnlyParameter = 4,

// NOTE: There is an additional value of this enum type - RefKindExtensions.StrictIn == RefKind.RefReadOnlyParameter + 1
// It is used internally during lowering.
// Consider that when adding values or changing this enum in some other way.
}

internal static class RefKindExtensions
Expand Down Expand Up @@ -90,6 +90,6 @@ internal static string ToParameterPrefix(this RefKind kind)
// There is at least one kind of analysis that cares about this distinction - hoisting
// of variables to the frame for async rewriting: a variable that was passed without the
// `In` modifier may be correctly captured by value or by reference.
internal const RefKind StrictIn = RefKind.In + 1;
internal const RefKind StrictIn = RefKind.RefReadOnlyParameter + 1;
}
}