11 overrides of HasCompilationUnitRoot
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
84public override bool HasCompilationUnitRoot
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
85public override bool HasCompilationUnitRoot
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
99public override bool HasCompilationUnitRoot
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
968public override bool HasCompilationUnitRoot
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
64public override bool HasCompilationUnitRoot
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
64public override bool HasCompilationUnitRoot
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
84Public Overrides ReadOnly Property HasCompilationUnitRoot As Boolean
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
89Public Overrides ReadOnly Property HasCompilationUnitRoot As Boolean
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
114Public Overrides ReadOnly Property HasCompilationUnitRoot As Boolean
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
513Public Overrides ReadOnly Property HasCompilationUnitRoot As Boolean
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
61Public Overrides ReadOnly Property HasCompilationUnitRoot As Boolean
39 references to HasCompilationUnitRoot
Microsoft.CodeAnalysis (2)
Syntax\ICompilationUnitSyntax.cs (1)
11/// any node returned by <see cref="SyntaxTree.GetRoot"/> where <see cref="SyntaxTree.HasCompilationUnitRoot"/>
Syntax\SyntaxTree.cs (1)
422get { return this.HasCompilationUnitRoot; }
Microsoft.CodeAnalysis.CSharp (8)
Compilation\CSharpCompilation.cs (2)
872if (!tree.HasCompilationUnitRoot) 1002if (!newTree.HasCompilationUnitRoot)
Compiler\ClsComplianceChecker.cs (1)
665System.Diagnostics.Debug.Assert(syntaxRef.SyntaxTree.HasCompilationUnitRoot);
Syntax\CSharpSyntaxTree.cs (4)
110/// Ensure that <see cref="SyntaxTree.HasCompilationUnitRoot"/> is true for this tree prior to invoking this method. 112/// <exception cref="InvalidCastException">Throws this exception if <see cref="SyntaxTree.HasCompilationUnitRoot"/> is false.</exception> 135Debug.Assert(HasCompilationUnitRoot); 145Debug.Assert(HasCompilationUnitRoot);
Syntax\SyntaxFactory.cs (1)
2326if (!tree.HasCompilationUnitRoot)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
175if (!semanticModel.SyntaxTree.HasCompilationUnitRoot)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpSendToInteractiveSubmissionProvider.cs (1)
32return tree.HasCompilationUnitRoot &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SyntaxTreeRootTests.cs (2)
43Assert.True(tree.HasCompilationUnitRoot); 53Assert.False(tree.HasCompilationUnitRoot);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\CompilationAPITests.cs (1)
913Assert.False(withExpressionRootTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?");
DeclarationTests.cs (1)
939Debug.Assert(underlying.HasCompilationUnitRoot);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Syntax\SyntaxRewriterTests.cs (9)
316Assert.False(node.SyntaxTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?"); 325Assert.True(node1.SyntaxTree.HasCompilationUnitRoot, "how did we get a non-CompilationUnit root?"); 329Assert.False(node2.SyntaxTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?"); 341Assert.True(newRoot.SyntaxTree.HasCompilationUnitRoot, "how did we get a non-CompilationUnit root?"); 353Assert.True(newRoot.SyntaxTree.HasCompilationUnitRoot, "how did we get a non-CompilationUnit root?"); 544Assert.True(rewrittenRoot.SyntaxTree.HasCompilationUnitRoot, "how did we get a non-CompilationUnit root?"); 559Assert.False(expr1.SyntaxTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?"); 577Assert.False(expr2.SyntaxTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?"); 623Assert.False(expr2.SyntaxTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?");
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
213if (!model.SyntaxTree.HasCompilationUnitRoot) 336if (!startNode.SyntaxTree.HasCompilationUnitRoot)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
175if (!semanticModel.SyntaxTree.HasCompilationUnitRoot)
Microsoft.CodeAnalysis.VisualBasic (7)
Compilation\ClsComplianceChecker.vb (1)
402Debug.Assert(syntaxRef.SyntaxTree.HasCompilationUnitRoot)
Compilation\VisualBasicCompilation.vb (2)
948If Not tree.HasCompilationUnitRoot Then 1082If Not newTree.HasCompilationUnitRoot Then
Syntax\SyntaxFactory.vb (1)
1074If Not tree.HasCompilationUnitRoot Then
Syntax\VisualBasicSyntaxTree.vb (3)
77''' Ensure that <see cref="SyntaxTree.HasCompilationUnitRoot"/> is true for this tree prior to invoking this method. 79''' <exception cref="InvalidCastException">Throws this exception if <see cref="SyntaxTree.HasCompilationUnitRoot"/> is false.</exception> 86Debug.Assert(Me.HasCompilationUnitRoot)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\CompilationAPITests.vb (1)
768Assert.False(withExpressionRootTree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?")
Semantics\SyntaxTreeRootTests.vb (2)
29Assert.Equal(True, tree.HasCompilationUnitRoot) 38Assert.Equal(False, tree.HasCompilationUnitRoot)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxRewriterTests.vb (1)
480Assert.False(tree.HasCompilationUnitRoot, "how did we get a CompilationUnit root?")