// 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.Diagnostics;
// PROTOTYPE(nullable-api): remove if possiblepublicstaticNullableFlowStateToInternalFlowState(thisCodeAnalysis.NullableFlowStateflowState){Debug.Assert((CodeAnalysis.NullableFlowState)(NullableFlowState.NotNull+1)==CodeAnalysis.NullableFlowState.NotNull);returnflowStateswitch{CodeAnalysis.NullableFlowState.NotApplicable=>NullableFlowState.NotNull,CodeAnalysis.NullableFlowState.NotNull=>NullableFlowState.NotNull,CodeAnalysis.NullableFlowState.MaybeNull=>NullableFlowState.MaybeNull,_=>throwExceptionUtilities.UnexpectedValue(flowState)};}