55 references to HasTrailingTrivia
Microsoft.CodeAnalysis (6)
Syntax\SyntaxNode.cs (1)
1539else if (position >= span.End && token.HasTrailingTrivia)
Syntax\SyntaxNode.Iterators.cs (2)
477if (token.HasTrailingTrivia) 590if (token.HasTrailingTrivia)
Syntax\SyntaxToken.cs (2)
516if (this.HasTrailingTrivia) 524if (this.HasTrailingTrivia)
Syntax\SyntaxWalker.cs (1)
83if (token.HasTrailingTrivia)
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
187if (token.HasTrailingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
244if (!token.HasTrailingTrivia) 352if (!previousToken.HasTrailingTrivia && !currentToken.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxWalker.cs (1)
86if (token.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
34if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (2)
52if (!token.HasTrailingTrivia) 72if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
80if (previousToken.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
402if (equalsToken.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
LexicalAndXml\LexicalTests.cs (3)
3622Assert.True(token.HasTrailingTrivia); 3640Assert.True(token.HasTrailingTrivia); 3661Assert.True(token.HasTrailingTrivia);
Syntax\SyntaxNodeTests.cs (3)
3717Assert.True(idToken.HasTrailingTrivia); 3725Assert.False(idToken.HasTrailingTrivia); 3733Assert.True(idToken.HasTrailingTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Classification\Worker_DocumentationComments.cs (2)
135if (token.HasTrailingTrivia) 148if (token.HasTrailingTrivia)
Rename\CSharpRenameRewriterLanguageService.cs (1)
728if (newToken.HasTrailingTrivia)
Simplification\CSharpSimplificationService.cs (1)
161if (previousToken.HasTrailingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (1)
34if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (2)
52if (!token.HasTrailingTrivia) 72if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
80if (previousToken.HasTrailingTrivia)
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
217if (!previousOfStart.HasTrailingTrivia && !nextOfEnd.HasLeadingTrivia)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
2229else if (lastNewToken.HasTrailingTrivia)
Microsoft.CodeAnalysis.VisualBasic (4)
Syntax\SyntaxNormalizer.vb (3)
303Return (token.HasTrailingTrivia AndAlso token.TrailingTrivia.Last.Kind = SyntaxKind.ColonTrivia) OrElse 629If trivia.GetStructure.GetLastToken.HasTrailingTrivia AndAlso 708Return node.HasTrailingTrivia AndAlso
Syntax\VisualBasicSyntaxWalker.vb (1)
71If token.HasTrailingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (2)
17If Not token.HasTrailingTrivia Then 278If Not token.HasTrailingTrivia OrElse token.HasAncestor(Of IncompleteMemberSyntax) Then
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.vb (1)
23If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\TriviaDataFactory.vb (2)
46If Not token.HasTrailingTrivia Then 63If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
32Dim trailingTrivia = If(node.ElseClause.ElseKeyword.HasTrailingTrivia AndAlso node.ElseClause.ElseKeyword.TrailingTrivia.Any(SyntaxKind.EndOfLineTrivia),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1053If currentToken.HasTrailingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Classification\Worker.DocumentationCommentClassifier.vb (2)
110If token.HasTrailingTrivia Then 123If token.HasTrailingTrivia Then
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
164If Not closeParenToken.HasTrailingTrivia Then
Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.vb (1)
23If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Formatting\Engine\Trivia\TriviaDataFactory.vb (2)
46If Not token.HasTrailingTrivia Then 63If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
657If newToken.HasTrailingTrivia Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (2)
17If Not token.HasTrailingTrivia Then 278If Not token.HasTrailingTrivia OrElse token.HasAncestor(Of IncompleteMemberSyntax) Then
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
187if (token.HasTrailingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
244if (!token.HasTrailingTrivia) 352if (!previousToken.HasTrailingTrivia && !currentToken.HasLeadingTrivia)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3693if (identifier.HasTrailingTrivia)