38 references to XmlTextLiteralNewLineToken
Microsoft.CodeAnalysis.CSharp (14)
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (1)
103if (endGreaterThanToken.GetNextToken() is SyntaxToken newLineToken && newLineToken.IsKind(SyntaxKind.XmlTextLiteralNewLineToken))
Parser\DocumentationCommentParser.cs (6)
150case SyntaxKind.XmlTextLiteralNewLineToken: 191|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 607|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 726|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken 753|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken) 775|| this.CurrentToken.Kind == SyntaxKind.XmlTextLiteralNewLineToken)
Parser\Lexer.cs (2)
401case SyntaxKind.XmlTextLiteralNewLineToken: 2897info.Kind = SyntaxKind.XmlTextLiteralNewLineToken;
Syntax\InternalSyntax\SyntaxFactory.cs (2)
239return SyntaxToken.WithValue(SyntaxKind.XmlTextLiteralNewLineToken, leading, text, value, trailing); 244return SyntaxToken.WithValue(SyntaxKind.XmlTextLiteralNewLineToken, null, text, text, null);
Syntax\SyntaxKindFacts.cs (1)
220case SyntaxKind.XmlTextLiteralNewLineToken:
Syntax\SyntaxNormalizer.cs (2)
990case SyntaxKind.XmlTextLiteralNewLineToken: 1224return token.Kind() == SyntaxKind.XmlTextLiteralNewLineToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
202var endsWithNewLine = trivia.GetStructure()!.GetLastToken(includeSkipped: true).Kind() == SyntaxKind.XmlTextLiteralNewLineToken;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
85var xmlNewLineToken = Token(leading: default, SyntaxKind.XmlTextLiteralNewLineToken, text: newLine, valueText: newLine, trailing: default);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
735if (prevToken.IsKind(SyntaxKind.XmlTextLiteralNewLineToken)) 797tokens is [(kind: SyntaxKind.XmlTextLiteralNewLineToken), _, ..]) 807tokens is [.., (kind: SyntaxKind.XmlTextLiteralNewLineToken), (kind: SyntaxKind.XmlTextLiteralToken) textLiteral] &&
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
50=> token.Kind() == SyntaxKind.XmlTextLiteralNewLineToken;
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (2)
57t => t.Kind() == SyntaxKind.XmlTextLiteralNewLineToken || string.IsNullOrWhiteSpace(t.Text)))) 88if (lastIndex - 1 >= 0 && tokens[lastIndex - 1].Kind() == SyntaxKind.XmlTextLiteralNewLineToken)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (3)
253=> token.RawKind == (int)SyntaxKind.XmlTextLiteralNewLineToken; 296return lastTextToken.Kind() == SyntaxKind.XmlTextLiteralNewLineToken 349return lastTextToken.Kind() == SyntaxKind.XmlTextLiteralNewLineToken
ReplaceDocCommentTextWithTag\CSharpReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
24=> token.Kind() is SyntaxKind.XmlTextLiteralToken or SyntaxKind.XmlTextLiteralNewLineToken;
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (1)
85var xmlNewLineToken = Token(leading: default, SyntaxKind.XmlTextLiteralNewLineToken, text: newLine, valueText: newLine, trailing: default);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
735if (prevToken.IsKind(SyntaxKind.XmlTextLiteralNewLineToken)) 797tokens is [(kind: SyntaxKind.XmlTextLiteralNewLineToken), _, ..]) 807tokens is [.., (kind: SyntaxKind.XmlTextLiteralNewLineToken), (kind: SyntaxKind.XmlTextLiteralToken) textLiteral] &&
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
50=> token.Kind() == SyntaxKind.XmlTextLiteralNewLineToken;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\XmlDocCommentTests.cs (2)
1653Assert.Equal(SyntaxKind.XmlTextLiteralNewLineToken, xmltext.ChildNodesAndTokens()[0].Kind()); 1659Assert.Equal(SyntaxKind.XmlTextLiteralNewLineToken, xmltext.ChildNodesAndTokens()[2].Kind());
Syntax\SyntaxNodeTests.cs (1)
325Assert.Equal(SyntaxKind.XmlTextLiteralNewLineToken, nodesAndTokens[4].Kind());
Syntax\SyntaxTests.cs (2)
211[InlineData(SyntaxKind.XmlTextLiteralNewLineToken)] 225[InlineData(SyntaxKind.XmlTextLiteralNewLineToken)]
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\Worker_DocumentationComments.cs (1)
159else if (token.Kind() != SyntaxKind.XmlTextLiteralNewLineToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
202var endsWithNewLine = trivia.GetStructure()!.GetLastToken(includeSkipped: true).Kind() == SyntaxKind.XmlTextLiteralNewLineToken;