75 references to InterpolatedStringKind
Microsoft.CodeAnalysis.CSharp (75)
Parser\LanguageParser_InterpolatedString.cs (19)
137rescanInterpolation(out var kind, out var error, out var openQuoteRange, interpolations, out var closeQuoteRange); 141var needsDedentation = kind == Lexer.InterpolatedStringKind.MultiLineRaw && error == null; 165void rescanInterpolation(out Lexer.InterpolatedStringKind kind, out SyntaxDiagnosticInfo? error, out Range openQuoteRange, ArrayBuilder<Lexer.Interpolation> interpolations, out Range closeQuoteRange) 181Lexer.InterpolatedStringKind.Normal => SyntaxKind.InterpolatedStringStartToken, 182Lexer.InterpolatedStringKind.Verbatim => SyntaxKind.InterpolatedVerbatimStringStartToken, 183Lexer.InterpolatedStringKind.SingleLineRaw => SyntaxKind.InterpolatedSingleLineRawStringStartToken, 184Lexer.InterpolatedStringKind.MultiLineRaw => SyntaxKind.InterpolatedMultiLineRawStringStartToken, 353Lexer.InterpolatedStringKind.Normal => SyntaxKind.InterpolatedStringEndToken, 354Lexer.InterpolatedStringKind.Verbatim => SyntaxKind.InterpolatedStringEndToken, 355Lexer.InterpolatedStringKind.SingleLineRaw => SyntaxKind.InterpolatedRawStringEndToken, 356Lexer.InterpolatedStringKind.MultiLineRaw => SyntaxKind.InterpolatedRawStringEndToken, 490Lexer.InterpolatedStringKind kind, 521Lexer.InterpolatedStringKind kind, 579private SyntaxToken MakeInterpolatedStringTextToken(Lexer.InterpolatedStringKind kind, string text) 583if (kind is Lexer.InterpolatedStringKind.SingleLineRaw or Lexer.InterpolatedStringKind.MultiLineRaw) 586Debug.Assert(kind is Lexer.InterpolatedStringKind.Normal or Lexer.InterpolatedStringKind.Verbatim); 590var prefix = kind is Lexer.InterpolatedStringKind.Verbatim ? "@\"" : "\"";
Parser\Lexer_StringLiteral.cs (56)
286out InterpolatedStringKind kind, 361private bool IsAtEnd(InterpolatedStringKind kind) 363return IsAtEnd(allowNewline: kind is InterpolatedStringKind.Verbatim or InterpolatedStringKind.MultiLineRaw); 381out InterpolatedStringKind kind, 416out InterpolatedStringKind kind, 431kind = InterpolatedStringKind.Verbatim; 444kind = InterpolatedStringKind.Normal; 482? InterpolatedStringKind.Verbatim 483: InterpolatedStringKind.SingleLineRaw; 509kind = InterpolatedStringKind.MultiLineRaw; 516kind = InterpolatedStringKind.SingleLineRaw; 522private void ScanInterpolatedStringLiteralEnd(InterpolatedStringKind kind, int startingQuoteCount, out Range closeQuoteRange) 528if (kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim) 534Debug.Assert(kind is InterpolatedStringKind.SingleLineRaw or InterpolatedStringKind.MultiLineRaw); 546private void ScanNormalOrVerbatimInterpolatedStringLiteralEnd(InterpolatedStringKind kind) 548Debug.Assert(kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim); 567private void ScanRawInterpolatedStringLiteralEnd(InterpolatedStringKind kind, int startingQuoteCount) 569Debug.Assert(kind is InterpolatedStringKind.SingleLineRaw or InterpolatedStringKind.MultiLineRaw); 571if (kind is InterpolatedStringKind.SingleLineRaw) 654InterpolatedStringKind kind, int startingDollarSignCount, int startingQuoteCount, ArrayBuilder<Interpolation>? interpolations) 695if (kind == InterpolatedStringKind.Normal) 719private bool CheckForIllegalEmptyMultiLineRawStringLiteral(InterpolatedStringKind kind, int startingQuoteCount) 721if (kind == InterpolatedStringKind.MultiLineRaw) 741private bool IsAtEndOfMultiLineRawLiteral(InterpolatedStringKind kind, int startingQuoteCount) 743if (kind == InterpolatedStringKind.MultiLineRaw) 769private bool IsEndDelimiterOtherwiseConsume(InterpolatedStringKind kind, int startingQuoteCount) 771if (kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim) 782if (kind == InterpolatedStringKind.Normal) 788Debug.Assert(kind == InterpolatedStringKind.Verbatim); 800Debug.Assert(kind is InterpolatedStringKind.SingleLineRaw or InterpolatedStringKind.MultiLineRaw); 818private void HandleCloseBraceInContent(InterpolatedStringKind kind, int startingDollarSignCount) 820if (kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim) 837Debug.Assert(kind is InterpolatedStringKind.MultiLineRaw or InterpolatedStringKind.SingleLineRaw); 855private void HandleOpenBraceInContent(InterpolatedStringKind kind, int startingDollarSignCount, ArrayBuilder<Interpolation>? interpolations) 857if (kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim) 867private void HandleOpenBraceInNormalOrVerbatimContent(InterpolatedStringKind kind, ArrayBuilder<Interpolation>? interpolations) 869Debug.Assert(kind is InterpolatedStringKind.Normal or InterpolatedStringKind.Verbatim); 896private void HandleOpenBraceInRawContent(InterpolatedStringKind kind, int startingDollarSignCount, ArrayBuilder<Interpolation>? interpolations) 898Debug.Assert(kind is InterpolatedStringKind.SingleLineRaw or InterpolatedStringKind.MultiLineRaw); 959private void ScanFormatSpecifier(InterpolatedStringKind kind) 977if (ch == '\\' && kind is InterpolatedStringKind.Normal) 989if (kind is InterpolatedStringKind.Verbatim && _lexer.TextWindow.PeekChar(1) == '"') 1022private void ScanInterpolatedStringLiteralHoleBalancedText(InterpolatedStringKind kind, char endingChar, bool isHole, out Range colonRange) 1156private void ScanInterpolatedStringLiteralHoleBracketed(InterpolatedStringKind kind, char start, char end)