27 references to ConvertToRawKind
Microsoft.CodeAnalysis.CSharp.Features (27)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (3)
177ConvertToRawKind kind, 181if (kind == ConvertToRawKind.SingleLine) 234var cleanedExpression = kind == ConvertToRawKind.MultiLineWithoutLeadingWhitespace
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (4)
128ConvertToRawKind kind, 140ConvertToRawKind kind, 147if (kind == ConvertToRawKind.SingleLine) 205if (kind == ConvertToRawKind.MultiLineWithoutLeadingWhitespace)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (17)
27private static readonly BidirectionalMap<ConvertToRawKind, string> s_kindToEquivalenceKeyMap = 30KeyValuePairUtil.Create(ConvertToRawKind.SingleLine, nameof(ConvertToRawKind.SingleLine)), 31KeyValuePairUtil.Create(ConvertToRawKind.MultiLineIndented, nameof(ConvertToRawKind.MultiLineIndented)), 32KeyValuePairUtil.Create(ConvertToRawKind.MultiLineWithoutLeadingWhitespace, nameof(ConvertToRawKind.MultiLineWithoutLeadingWhitespace)), 92cancellationToken => UpdateDocumentAsync(document, parentExpression, ConvertToRawKind.SingleLine, provider, cancellationToken), 93s_kindToEquivalenceKeyMap[ConvertToRawKind.SingleLine], 102cancellationToken => UpdateDocumentAsync(document, parentExpression, ConvertToRawKind.MultiLineIndented, provider, cancellationToken), 103s_kindToEquivalenceKeyMap[ConvertToRawKind.MultiLineIndented], 112cancellationToken => UpdateDocumentAsync(document, parentExpression, ConvertToRawKind.MultiLineWithoutLeadingWhitespace, provider, cancellationToken), 113s_kindToEquivalenceKeyMap[ConvertToRawKind.MultiLineWithoutLeadingWhitespace], 123ConvertToRawKind kind, 161ConvertToRawKind.SingleLine => canConvertParams.CanBeSingleLine, 162ConvertToRawKind.MultiLineIndented => !canConvertParams.CanBeSingleLine, 166ConvertToRawKind.MultiLineWithoutLeadingWhitespace =>
ConvertToRawString\IConvertStringProvider.cs (3)
24ConvertToRawKind kind, 42public ExpressionSyntax Convert(ParsedDocument document, ExpressionSyntax expression, ConvertToRawKind kind, SyntaxFormattingOptions formattingOptions, CancellationToken cancellationToken) 61ConvertToRawKind kind,