82 references to HasLeadingTrivia
Microsoft.CodeAnalysis (6)
Syntax\CommonSyntaxNodeRemover.cs (1)
45!nextSeparator.HasLeadingTrivia &&
Syntax\SyntaxNode.cs (1)
1535if (position < span.Start && token.HasLeadingTrivia)
Syntax\SyntaxNode.Iterators.cs (2)
486if (token.HasLeadingTrivia) 595if (token.HasLeadingTrivia)
Syntax\SyntaxToken.cs (1)
514if (this.HasLeadingTrivia)
Syntax\SyntaxWalker.cs (1)
72if (token.HasLeadingTrivia)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
181if (endOfFileToken.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (3)
209if (!token.HasLeadingTrivia) 226if (!token.HasLeadingTrivia) 352if (!previousToken.HasTrailingTrivia && !currentToken.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxWalker.cs (1)
75if (token.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
191if (eof.HasLeadingTrivia)
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)
32if (!token.HasLeadingTrivia) 72if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
73if (token.HasLeadingTrivia)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (38)
LexicalAndXml\LexicalTests.cs (35)
3616Assert.True(token.HasLeadingTrivia); 3634Assert.True(token.HasLeadingTrivia); 3655Assert.True(token.HasLeadingTrivia); 3839Assert.True(token.HasLeadingTrivia); 3849Assert.True(token.HasLeadingTrivia); 3867Assert.True(token.HasLeadingTrivia); 3875Assert.True(token.HasLeadingTrivia); 3898Assert.True(token.HasLeadingTrivia); 3921Assert.True(token.HasLeadingTrivia); 3939Assert.True(token.HasLeadingTrivia); 3949Assert.True(token.HasLeadingTrivia); 3955Assert.True(token.HasLeadingTrivia); 3967Assert.True(token.HasLeadingTrivia); 3990Assert.True(token.HasLeadingTrivia); 4012Assert.True(token.HasLeadingTrivia); 4045Assert.True(token.HasLeadingTrivia); 4078Assert.True(token.HasLeadingTrivia); 4088Assert.True(token.HasLeadingTrivia); 4094Assert.True(token.HasLeadingTrivia); 4101Assert.True(token.HasLeadingTrivia); 4119Assert.True(token.HasLeadingTrivia); 4136Assert.True(token.HasLeadingTrivia); 4170Assert.True(token.HasLeadingTrivia); 4210Assert.True(token.HasLeadingTrivia); 4244Assert.True(token.HasLeadingTrivia); 4254Assert.True(token.HasLeadingTrivia); 4260Assert.True(token.HasLeadingTrivia); 4274Assert.True(token.HasLeadingTrivia); 4296Assert.True(token.HasLeadingTrivia); 4319Assert.True(token.HasLeadingTrivia); 4348Assert.True(token.HasLeadingTrivia); 4379Assert.True(token.HasLeadingTrivia); 4418Assert.True(token.HasLeadingTrivia); 4474Assert.True(token.HasLeadingTrivia); 4532Assert.True(token.HasLeadingTrivia);
Syntax\SyntaxNodeTests.cs (3)
3752Assert.True(idToken.HasLeadingTrivia); 3761Assert.False(idToken.HasLeadingTrivia); 3768Assert.True(idToken.HasLeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Classification\Worker_DocumentationComments.cs (2)
130if (token.HasLeadingTrivia) 143if (token.HasLeadingTrivia)
Rename\CSharpRenameRewriterLanguageService.cs (1)
714if (newToken.HasLeadingTrivia)
Simplification\CSharpSimplificationService.cs (1)
154if (token.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
191if (eof.HasLeadingTrivia)
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)
32if (!token.HasLeadingTrivia) 72if (!token1.HasTrailingTrivia && !token2.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\CSharpSimplificationHelpers.cs (1)
73if (token.HasLeadingTrivia)
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
217if (!previousOfStart.HasTrailingTrivia && !nextOfEnd.HasLeadingTrivia)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxWalker.vb (1)
63If token.HasLeadingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
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)
29If Not token.HasLeadingTrivia Then 63If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (1)
341addEqualsAndQuotes:=Not nextToken.IsKind(SyntaxKind.EqualsToken) Or nextToken.HasLeadingTrivia)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1045If currentToken.HasLeadingTrivia Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Classification\Worker.DocumentationCommentClassifier.vb (2)
104If token.HasLeadingTrivia Then 117If token.HasLeadingTrivia Then
Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.vb (1)
23If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Formatting\Engine\Trivia\TriviaDataFactory.vb (2)
29If Not token.HasLeadingTrivia Then 63If (Not token1.HasTrailingTrivia) AndAlso (Not token2.HasLeadingTrivia) Then
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
649If newToken.HasLeadingTrivia Then
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
181if (endOfFileToken.HasLeadingTrivia)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (3)
209if (!token.HasLeadingTrivia) 226if (!token.HasLeadingTrivia) 352if (!previousToken.HasTrailingTrivia && !currentToken.HasLeadingTrivia)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
3350if (firstToken.HasLeadingTrivia)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
3816If firstToken.HasLeadingTrivia Then