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