111 references to HasStructure
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
132if (trivia.HasStructure)
Microsoft.CodeAnalysis (5)
Syntax\SyntaxNode.cs (3)
1135if (trivia.HasStructure && stepInto != null && stepInto(trivia)) 1154if (trivia.HasStructure && stepInto != null && stepInto(trivia)) 1522if (trivia.HasStructure && stepInto(trivia))
Syntax\SyntaxTrivia.cs (1)
209return HasStructure ? UnderlyingNode!.GetStructure(this) : null;
Syntax\SyntaxWalker.cs (1)
100if (this.Depth >= SyntaxWalkerDepth.StructuredTrivia && trivia.HasStructure)
Microsoft.CodeAnalysis.CodeStyle (9)
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
101leadingTrivia[i - 1].HasStructure)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
704if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
549if (trivia.HasStructure) 579if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
150if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
22Contract.ThrowIfFalse(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
471else if (trivia1.HasStructure) 485else if (trivia2.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
125if (trivia.HasStructure)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
112if (triviaList[currentStart - 1].HasStructure)
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
40root.FindTrivia(diagnostic.Location.SourceSpan.Start).HasStructure)
Microsoft.CodeAnalysis.CSharp (8)
Syntax\CSharpSyntaxNode.cs (1)
390Debug.Assert(trivia.HasStructure);
Syntax\CSharpSyntaxRewriter.cs (1)
119if (this.VisitIntoStructuredTrivia && trivia.HasStructure)
Syntax\CSharpSyntaxWalker.cs (1)
97if (this.Depth >= SyntaxWalkerDepth.StructuredTrivia && trivia.HasStructure)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
272if (trivia.HasStructure)
Syntax\SyntaxNormalizer.cs (2)
1064if (trivia.HasStructure) 1240if (trivia.HasStructure)
Syntax\SyntaxReplacer.cs (2)
221if (this.VisitIntoStructuredTrivia && trivia.HasStructure && this.ShouldVisit(trivia.FullSpan)) 359if (this.VisitIntoStructuredTrivia && trivia.HasStructure && this.ShouldVisit(trivia.FullSpan))
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
551if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
199RoslynDebug.Assert(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (4)
123else if (previous.HasStructure && previous.GetStructure() is BranchingDirectiveTriviaSyntax branchingDirectiveTrivia) 179if (!trivia.HasStructure) 244if (trivia.HasStructure) 262if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
325Debug.Assert(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
307if (!(trivia.HasStructure))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (15)
LexicalAndXml\XmlDocCommentTests.cs (3)
1718Assert.False(trivias[0].HasStructure); 1719Assert.False(trivias[4].HasStructure); 1722Assert.True(trivias[2].HasStructure);
ParentChecker.cs (2)
30if (trivia.HasStructure) 43if (trivia.HasStructure)
Parsing\ScriptParsingTests.cs (1)
9727Assert.True(trivia.HasStructure);
Syntax\SyntaxAnnotationTests.cs (3)
749if (trivia.HasStructure) 800if (trivia.HasStructure) 850if (trivia.HasStructure)
Syntax\SyntaxNodeTests.cs (6)
1356Assert.True(trivia.HasStructure); 1367Assert.True(trivia.HasStructure); 1953Assert.True(someNode.Identifier.TrailingTrivia[0].HasStructure); 1954Assert.True(someNode.Identifier.TrailingTrivia[1].HasStructure); 1990Assert.True(someNode.Identifier.TrailingTrivia[0].HasStructure); 1991Assert.True(someNode.Identifier.TrailingTrivia[1].HasStructure);
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
122if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
551if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
199RoslynDebug.Assert(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (4)
123else if (previous.HasStructure && previous.GetStructure() is BranchingDirectiveTriviaSyntax branchingDirectiveTrivia) 179if (!trivia.HasStructure) 244if (trivia.HasStructure) 262if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
325Debug.Assert(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
307if (!(trivia.HasStructure))
Microsoft.CodeAnalysis.Features (7)
ChangeSignature\AbstractChangeSignatureService.cs (1)
980if (!trivia.HasStructure)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (3)
139(trivia.HasStructure && fixer.IsEndOfLine(trivia.GetStructure().DescendantTrivia().FirstOrDefault())); 145(trivia.HasStructure && fixer.IsEndOfLine(trivia.GetStructure().DescendantTrivia().LastOrDefault())); 151(trivia.HasStructure && trivia.GetStructure().DescendantTrivia().Any(fixer.IsEndOfLine));
src\Analyzers\Core\Analyzers\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
101leadingTrivia[i - 1].HasStructure)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
704if (trivia.HasStructure)
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
112if (triviaList[currentStart - 1].HasStructure)
Microsoft.CodeAnalysis.Test.Utilities (1)
Syntax\XmlHelpers.cs (1)
246if (trivia.HasStructure)
Microsoft.CodeAnalysis.VisualBasic (7)
Syntax\SyntaxNormalizer.vb (2)
240If trivia.HasStructure Then 628If trivia.HasStructure Then
Syntax\SyntaxReplacer.vb (2)
177If Me.VisitIntoStructuredTrivia AndAlso trivia.HasStructure AndAlso Me.ShouldVisit(trivia.FullSpan) Then 278If Me._visitIntoStructuredTrivia AndAlso element.HasStructure AndAlso Me.ShouldVisit(element.FullSpan) Then
Syntax\VisualBasicSyntaxNode.vb (1)
253If n.HasStructure Then
Syntax\VisualBasicSyntaxRewriter.vb (1)
61If Me.VisitIntoStructuredTrivia AndAlso trivia.HasStructure Then
Syntax\VisualBasicSyntaxWalker.vb (1)
79If Depth >= SyntaxWalkerDepth.StructuredTrivia AndAlso trivia.HasStructure Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
408If trivia.HasStructure AndAlso TypeOf trivia.GetStructure() Is DirectiveTriviaSyntax Then
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (2)
162If trivia.HasStructure Then 178If trivia.HasStructure Then
Microsoft.CodeAnalysis.VisualBasic.Features (3)
BraceCompletion\BracketBraceCompletionService.vb (1)
58Not trivia.HasStructure Then
Completion\KeywordRecommenders\PreprocessorDirectives\PreprocessorHelpers.vb (2)
39If leadingTrivia.HasStructure Then 55If followingTrivia.HasStructure Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Syntax\SyntaxAnnotationTests.vb (3)
693If trivia.HasStructure Then 736If trivia.HasStructure Then 778If trivia.HasStructure Then
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (14)
ParserTestUtilities.vb (14)
133If trivia.HasStructure Then 149If trivia.HasStructure Then 416If tr.HasStructure Then 423If tr.HasStructure Then 683If leadingTrivia.HasStructure Then 692If trailingTrivia.HasStructure Then 710If tr.HasStructure Then 716If tr.HasStructure Then 753If trivia.HasStructure Then 786If tr.HasStructure Then 791If tr.HasStructure Then 808If tr.HasStructure Then 814If tr.HasStructure Then 835If tr.HasStructure Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Classification\Worker.vb (1)
117If trivia.HasStructure Then
Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (2)
162If trivia.HasStructure Then 178If trivia.HasStructure Then
Simplification\VisualBasicSimplificationService.NodesAndTokensToReduceComputer.vb (1)
110If trivia.HasStructure Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxNodeExtensions.vb (1)
408If trivia.HasStructure AndAlso TypeOf trivia.GetStructure() Is DirectiveTriviaSyntax Then
Microsoft.CodeAnalysis.Workspaces (10)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
175if (trivia.HasStructure && trivia.FullSpan.IntersectsWith(_textSpan))
FindSymbols\FindReferences\FindReferenceCache.cs (1)
180if (trivia.HasStructure)
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
96if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
549if (trivia.HasStructure) 579if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
150if (trivia.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
22Contract.ThrowIfFalse(trivia.HasStructure);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
471else if (trivia1.HasStructure) 485else if (trivia2.HasStructure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
125if (trivia.HasStructure)
Microsoft.VisualStudio.LanguageServices (1)
Extensions\DocumentExtensions.cs (1)
34if (trivia.HasStructure)