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
32 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 (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)
146var compilationUnit = (ICompilationUnitSyntax)root; 179var compilationUnit = (ICompilationUnitSyntax)root;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
13where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
64if (syntaxNode is not ICompilationUnitSyntax)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
17where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
Microsoft.CodeAnalysis.CSharp.Features (1)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
290scope is ICompilationUnitSyntax
Microsoft.CodeAnalysis.Features (4)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
209var 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 (9)
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)
146var compilationUnit = (ICompilationUnitSyntax)root; 179var compilationUnit = (ICompilationUnitSyntax)root;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
13where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
64if (syntaxNode is not ICompilationUnitSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
17where TSyntaxRoot : SyntaxNode, ICompilationUnitSyntax
Microsoft.Interop.SourceGeneration (1)
IncrementalGeneratorInitializationContextExtensions.cs (1)
22(node, ct) => node is ICompilationUnitSyntax,