2 implementations of ICompilationUnitSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CompilationUnitSyntax.cs (1)
11public sealed partial class CompilationUnitSyntax : CSharpSyntaxNode, ICompilationUnitSyntax
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\CompilationUnitSyntax.vb (1)
9Implements ICompilationUnitSyntax
35 references to ICompilationUnitSyntax
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
119return position < root.FullSpan.End || !(root is ICompilationUnitSyntax)
Microsoft.CodeAnalysis (6)
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
111targetNode is ICompilationUnitSyntax compilationUnit ? semanticModel.Compilation.Assembly :
SourceGeneration\Nodes\SyntaxValueProvider_ForAttributeWithSimpleName.cs (3)
116Debug.Assert(compilationUnit is ICompilationUnitSyntax); 160Debug.Assert(compilationUnit is ICompilationUnitSyntax); 196if (compilationUnit is ICompilationUnitSyntax)
Syntax\SyntaxNode.cs (2)
1464var compilationUnit = this as ICompilationUnitSyntax;
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
604return (position < root.FullSpan.End || !(root is ICompilationUnitSyntax))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
95? ((ICompilationUnitSyntax)token.Parent!.SyntaxTree!.GetRoot(CancellationToken.None)).EndOfFileToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (4)
145var compilationUnit = (ICompilationUnitSyntax)root; 178var compilationUnit = (ICompilationUnitSyntax)root;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
13where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
17where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
162var endOfFileToken = ((ICompilationUnitSyntax)modifiedRoot).EndOfFileToken;
PullMemberUp\MembersPuller.cs (2)
435.Where(node => node is ICompilationUnitSyntax || syntaxFacts.IsBaseNamespaceDeclaration(node)) 436.SelectManyAsArray(node => node is ICompilationUnitSyntax
Testing\AbstractTestMethodFinder.cs (1)
104if (node is ICompilationUnitSyntax)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\CompilationUnitSyntax.vb (1)
11Private ReadOnly Property ICompilationUnitSyntax_EndOfFileToken As SyntaxToken Implements ICompilationUnitSyntax.EndOfFileToken
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
604return (position < root.FullSpan.End || !(root is ICompilationUnitSyntax))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
95? ((ICompilationUnitSyntax)token.Parent!.SyntaxTree!.GetRoot(CancellationToken.None)).EndOfFileToken
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (4)
145var compilationUnit = (ICompilationUnitSyntax)root; 178var compilationUnit = (ICompilationUnitSyntax)root;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
13where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
17where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
Microsoft.Extensions.Logging.Generators (3)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
136targetNode is ICompilationUnitSyntax compilationUnit ? semanticModel.Compilation.Assembly :
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
161Debug.Assert(compilationUnit is ICompilationUnitSyntax); 198Debug.Assert(compilationUnit is ICompilationUnitSyntax);
Microsoft.Interop.SourceGeneration (1)
IncrementalGeneratorInitializationContextExtensions.cs (1)
22(node, ct) => node is ICompilationUnitSyntax,
System.Text.Json.SourceGeneration (3)
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithMetadataName.cs (1)
136targetNode is ICompilationUnitSyntax compilationUnit ? semanticModel.Compilation.Assembly :
src\libraries\Common\src\Roslyn\SyntaxValueProvider_ForAttributeWithSimpleName.cs (2)
161Debug.Assert(compilationUnit is ICompilationUnitSyntax); 198Debug.Assert(compilationUnit is ICompilationUnitSyntax);