48 references to WithoutLeadingTrivia
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNodeExtensions.cs (1)
334return syntax.WithoutLeadingTrivia().WithoutTrailingTrivia();
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
75newImports[originalFirstUsingCurrentIndex] = originalFirstUsing.WithoutLeadingTrivia();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
326memberAccess.Name.WithoutLeadingTrivia()))),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
224leftOfAssignment = leftOfAssignment.WithoutLeadingTrivia();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
455expression.WithoutLeadingTrivia()) 549return expression.WithoutLeadingTrivia();
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
166.WithoutLeadingTrivia() 358PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia())
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
80node.WithoutLeadingTrivia())
Microsoft.CodeAnalysis.CSharp.Features (15)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
138memberNode = memberNode.WithoutLeadingTrivia();
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
133method = method.WithoutLeadingTrivia().WithAttributeLists(localFunction.AttributeLists).WithLeadingTrivia(method.GetLeadingTrivia());
InitializeParameter\CSharpAddParameterCheckCodeRefactoringProvider.cs (1)
82ifTrueStatement = ifTrueStatement.WithoutLeadingTrivia();
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
81.WithoutLeadingTrivia()
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (2)
66localDeclaration = localDeclaration.ReplaceNode(value, expression.WithoutLeadingTrivia()); 82deconstruction = deconstruction.ReplaceNode(binary.Right, expression.WithoutLeadingTrivia());
Snippets\CSharpForEachLoopSnippetProvider.cs (2)
92collectionIdentifier.WithoutLeadingTrivia(), 101collectionIdentifier.WithoutLeadingTrivia(),
Snippets\CSharpReversedForLoopSnippetProvider.cs (1)
31var subtractFrom = inlineExpression?.WithoutLeadingTrivia() ?? generator.IdentifierName("length");
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
326memberAccess.Name.WithoutLeadingTrivia()))),
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
224leftOfAssignment = leftOfAssignment.WithoutLeadingTrivia();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
455expression.WithoutLeadingTrivia()) 549return expression.WithoutLeadingTrivia();
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
166.WithoutLeadingTrivia() 358PrimaryConstructorBaseType(baseType.Type.WithoutTrailingTrivia(), argumentList.WithoutLeadingTrivia())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxDiffingTests.cs (1)
316node.WithoutLeadingTrivia())
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
Simplification\CSharpSimplificationService.Expander.cs (2)
264.WithoutLeadingTrivia() 334.WithoutLeadingTrivia()
Simplification\Reducers\CSharpExtensionMethodReducer.cs (2)
86(IdentifierNameSyntax)invocationExpressionNodeExpression.WithoutLeadingTrivia()); 92(GenericNameSyntax)invocationExpressionNodeExpression.WithoutLeadingTrivia());
Microsoft.CodeAnalysis.Features (2)
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
122expression.WithoutLeadingTrivia());
PullMemberUp\MembersPuller.cs (1)
335.WithoutLeadingTrivia()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
103Dim stripped = newExpression.WithoutLeadingTrivia().WithoutTrailingTrivia()
Microsoft.CodeAnalysis.VisualBasic.Features (5)
CodeFixes\OverloadBase\OverloadBaseCodeFixProvider.AddKeywordAction.vb (1)
56node = node.WithoutLeadingTrivia()
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (2)
147compilationRoot = compilationRoot.WithoutLeadingTrivia() 161memberNode = memberNode.WithoutLeadingTrivia()
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
205Dim trimmedExpression = expression.WithoutTrailingTrivia().WithoutLeadingTrivia()
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
37SyntaxFactory.EqualsValue(value:=expression.WithoutTrailingTrivia().WithoutLeadingTrivia()))))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
201.WithoutLeadingTrivia() _
Simplification\VisualBasicSimplificationService.Expander.vb (3)
384Return SyntaxFactory.NamedFieldInitializer(SyntaxFactory.IdentifierName(identifier), newInitializer.Expression.WithoutLeadingTrivia()). 672DirectCast(newNode, SimpleNameSyntax).WithoutLeadingTrivia()) _ 752rewrittenNode = rewrittenNode.WithoutLeadingTrivia()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (1)
103Dim stripped = newExpression.WithoutLeadingTrivia().WithoutTrailingTrivia()
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (1)
1471var nodeWithoutTrivia = node.WithoutLeadingTrivia().WithoutTrailingTrivia();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (1)
75newImports[originalFirstUsingCurrentIndex] = originalFirstUsing.WithoutLeadingTrivia();
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\ModifierFlagsExtensions.vb (2)
128member = member.WithoutLeadingTrivia() 149parameter = parameter.WithoutLeadingTrivia()
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
86PropertyDeclarationSyntax newProperty = propertyDeclarationSyntax.WithoutLeadingTrivia();
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)
AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.vb (1)
94Dim newProperty = propertyDeclarationSyntax.WithoutLeadingTrivia()