19 references to HasTrailingTrivia
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
148if (node.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
2355if (lastNode.HasTrailingTrivia && lastNode.ContainsDiagnostics && HasUnterminatedMultiLineComment(lastNode.GetTrailingTrivia()))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
187structuredTrivia.HasTrailingTrivia &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
353while (fileScopedNamespace.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp.Features (2)
Copilot\CSharpCopilotCodeFixProvider.cs (1)
130.WithTrailingTrivia(memberDeclaration.HasTrailingTrivia ? memberDeclaration.GetTrailingTrivia() : method.GetTrailingTrivia())
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
353while (fileScopedNamespace.HasTrailingTrivia)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxNodeTests.cs (3)
3742Assert.True(namedNode.HasTrailingTrivia); 3750Assert.False(namedNode.HasTrailingTrivia); 3758Assert.True(namedNode.HasTrailingTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
187structuredTrivia.HasTrailingTrivia &&
Microsoft.CodeAnalysis.Features (1)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeNamespaceScopeEditor.cs (1)
101if (trailing && syntaxNode.HasTrailingTrivia)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
79If Not statement.HasTrailingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (1)
80If statement.Kind <> SyntaxKind.EmptyStatement OrElse statement.HasTrailingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (2)
268If n.ParameterList.HasTrailingTrivia Then 274If n.HasTrailingTrivia AndAlso nodeWithParams.GetLastToken() = nodeWithParams.ParameterList.CloseParenToken Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
79If Not statement.HasTrailingTrivia Then
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (1)
148if (node.HasTrailingTrivia)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (1)
973If Not statement.HasTrailingTrivia Then
CodeModel\VisualBasicCodeModelService.vb (1)
3826(Not list.HasTrailingTrivia OrElse Not list.GetTrailingTrivia().Any(SyntaxKind.EndOfLineTrivia)) Then