52 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)
247state.VariableDeclarator.WithoutTrailingTrivia(),
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
313memberAccess.Expression.WithoutTrailingTrivia(),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
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)
171.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia()) 401PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia()) 431.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
70newPropertyDeclaration.WithoutTrailingTrivia()
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
396(_, _) => objectCreationNodeWithCorrectInitializer.WithoutTrailingTrivia(), 1031.WithBody(null).WithoutTrailingTrivia().WithSemicolonToken(
Microsoft.CodeAnalysis.CSharp.Features (15)
ConvertAnonymousType\CSharpConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (1)
72? nameEquals.Name.WithoutTrailingTrivia()
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())])),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
294return ReturnStatement(ReturnKeyword.WithoutTrailingTrivia(), this.AnalyzerResult.CoreReturnType.SpecialType == SpecialType.System_Void ? null : IdentifierName(ReturnValueName).WithLeadingTrivia(Space).WithoutTrailingTrivia(), SemicolonToken.WithoutLeadingTrivia());
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)
171.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia()) 401PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia()) 431.WithTypeParameterList(typeParameterList?.WithoutTrailingTrivia())
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
44var m2 = m.WithoutTrailingTrivia();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
70newPropertyDeclaration.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 (7)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
372invocation = invocation.WithoutTrailingTrivia().WithArgumentList(emptyArgumentList)
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (1)
209Dim variable = declaration.Declarators(0).WithoutTrailingTrivia().WithInitializer(SyntaxFactory.EqualsValue(assignment.Right))
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
205Dim trimmedExpression = 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)
1470var 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)
247state.VariableDeclarator.WithoutTrailingTrivia(),