50 references to WithoutTrailingTrivia
Microsoft.AspNetCore.App.CodeFixes (1)
Http\HeaderDictionaryAddFixer.cs (1)
127memberAccessExpression.Expression.WithoutTrailingTrivia(),
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeExtensions.cs (1)
334return syntax.WithoutLeadingTrivia().WithoutTrailingTrivia();
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
53GetWhenNullExpression(whenTrueStatement).WithoutTrailingTrivia()).WithTriviaFrom(expressionToCoalesce));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
83newImports[originalLastUsingCurrentIndex] = originalLastUsing.WithoutTrailingTrivia();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
246state.VariableDeclarator.WithoutTrailingTrivia(),
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
313memberAccess.Expression.WithoutTrailingTrivia(),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
339namespaceDeclaration.Name.WithoutTrailingTrivia(), 394var closeBraceToken = CloseBraceToken.WithoutLeadingTrivia().WithoutTrailingTrivia();
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
318PrimaryConstructorBaseType(baseRecord.Type.WithoutTrailingTrivia(), 558updatedObjectCreation.Type.WithoutTrailingTrivia(),
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (3)
164.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia()) 358PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia()) 388.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia())
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
396(_, _) => objectCreationNodeWithCorrectInitializer.WithoutTrailingTrivia(), 1031.WithBody(null).WithoutTrailingTrivia().WithSemicolonToken(
Microsoft.CodeAnalysis.CSharp.Features (14)
ConvertCast\CSharpConvertDirectCastToTryCastCodeRefactoringProvider.cs (2)
60expression = expression.WithoutTrailingTrivia(); 61typeNode = typeNode.WithoutTrailingTrivia();
ConvertCast\CSharpConvertTryCastToDirectCastCodeRefactoringProvider.cs (2)
56typeNode = typeNode.WithoutTrailingTrivia(); 62var castExpression = CastExpression(openParen, typeNode, closeParen, expression.WithoutTrailingTrivia())
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
206Argument(joinClause.RightExpression.WithoutTrailingTrivia())])),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
234newPropertyDeclaration.WithoutTrailingTrivia()
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
313memberAccess.Expression.WithoutTrailingTrivia(),
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (2)
339namespaceDeclaration.Name.WithoutTrailingTrivia(), 394var closeBraceToken = CloseBraceToken.WithoutLeadingTrivia().WithoutTrailingTrivia();
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (2)
318PrimaryConstructorBaseType(baseRecord.Type.WithoutTrailingTrivia(), 558updatedObjectCreation.Type.WithoutTrailingTrivia(),
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (3)
164.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia()) 358PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia()) 388.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
44var m2 = m.WithoutTrailingTrivia();
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
53GetWhenNullExpression(whenTrueStatement).WithoutTrailingTrivia()).WithTriviaFrom(expressionToCoalesce));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
95methodNode.ParameterList.WithoutTrailingTrivia(),
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (2)
119subStatement.TypeParameterList?.WithoutTrailingTrivia(), 120subStatement.ParameterList?.WithoutTrailingTrivia(),
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\UseInitializerHelpers.vb (1)
21Return objectCreation.WithoutTrailingTrivia().
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
103Dim stripped = newExpression.WithoutLeadingTrivia().WithoutTrailingTrivia()
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
370invocation = invocation.WithoutTrailingTrivia().WithArgumentList(emptyArgumentList)
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (1)
208Dim variable = declaration.Declarators(0).WithoutTrailingTrivia().WithInitializer(SyntaxFactory.EqualsValue(assignment.Right))
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
205Dim trimmedExpression = expression.WithoutTrailingTrivia().WithoutLeadingTrivia()
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
37SyntaxFactory.EqualsValue(value:=expression.WithoutTrailingTrivia().WithoutLeadingTrivia()))))
src\Analyzers\VisualBasic\CodeFixes\ConvertToAsync\VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
95methodNode.ParameterList.WithoutTrailingTrivia(),
src\Analyzers\VisualBasic\CodeFixes\MakeMethodAsynchronous\VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (2)
119subStatement.TypeParameterList?.WithoutTrailingTrivia(), 120subStatement.ParameterList?.WithoutTrailingTrivia(),
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\UseInitializerHelpers.vb (1)
21Return objectCreation.WithoutTrailingTrivia().
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
202.WithoutTrailingTrivia()
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
277.WithoutTrailingTrivia() _
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
103Dim stripped = newExpression.WithoutLeadingTrivia().WithoutTrailingTrivia()
Microsoft.CodeAnalysis.Workspaces (3)
Editing\SyntaxGenerator.cs (1)
1471var nodeWithoutTrivia = node.WithoutLeadingTrivia().WithoutTrailingTrivia();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
83newImports[originalLastUsingCurrentIndex] = originalLastUsing.WithoutTrailingTrivia();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (1)
246state.VariableDeclarator.WithoutTrailingTrivia(),