diff --git a/src/Compilers/Core/Portable/PublicAPI.Unshipped.txt b/src/Compilers/Core/Portable/PublicAPI.Unshipped.txt index 3d2e7245b414b..dbf50e5415363 100644 --- a/src/Compilers/Core/Portable/PublicAPI.Unshipped.txt +++ b/src/Compilers/Core/Portable/PublicAPI.Unshipped.txt @@ -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.explicit operator Microsoft.CodeAnalysis.SeparatedSyntaxList(Microsoft.CodeAnalysis.SeparatedSyntaxList nodes) -> Microsoft.CodeAnalysis.SeparatedSyntaxList static Microsoft.CodeAnalysis.SeparatedSyntaxList.op_Implicit(Microsoft.CodeAnalysis.SeparatedSyntaxList nodes) -> Microsoft.CodeAnalysis.SeparatedSyntaxList static Microsoft.CodeAnalysis.SyntaxList.explicit operator Microsoft.CodeAnalysis.SyntaxList(Microsoft.CodeAnalysis.SyntaxList nodes) -> Microsoft.CodeAnalysis.SyntaxList diff --git a/src/Compilers/Core/Portable/Symbols/RefKind.cs b/src/Compilers/Core/Portable/Symbols/RefKind.cs index e1a41298596d9..f589e7252189e 100644 --- a/src/Compilers/Core/Portable/Symbols/RefKind.cs +++ b/src/Compilers/Core/Portable/Symbols/RefKind.cs @@ -37,14 +37,14 @@ public enum RefKind : byte /// 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. - /// /// Indicates a "ref readonly" parameter. /// - 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 @@ -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; } }