' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem;
usingSystem.Diagnostics;
usingSystem.Linq;
usingMicrosoft.CodeAnalysis.CodeStyle;
usingMicrosoft.CodeAnalysis.CSharp.Syntax;
usingMicrosoft.CodeAnalysis.Shared.Extensions;
usingRoslyn.Utilities;
namespaceMicrosoft.CodeAnalysis.CSharp.Extensions
{
...
...
@@ -10,16 +14,19 @@ internal static class BlockSyntaxExtensions
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespaceMicrosoft.CodeAnalysis.CodeStyle
{
/// <remarks>
/// Note: the order of this enum is important. We originally only supported two values,
/// and we encoded this as a bool with 'true = WhenPossible' and 'false = never'. To
/// preserve compatibility we map the false value to 0 and the true value to 1. All new
/// values go after these.
/// </remarks>
internalenumExpressionBodyPreference
{
// Value can not be changed. 'false' was the "never" value back when we used CodeStyleOption<bool>
// and that will map to '0' when derialized.
Never=0,
// Value can not be changed. 'true' was the 'whenever possible' value back when we used
// CodeStyleOption<bool> and that will map to '1' when deserialized.