Click or drag to resize

ICompilationUnitSyntax Interface



Interface implemented by any node that is the root 'CompilationUnit' of a SyntaxTree. i.e. any node returned by GetRoot(CancellationToken) where HasCompilationUnitRoot is
true
will implement this interface. This interface provides a common way to both easily find the root of a SyntaxTree given any SyntaxNode, as well as a common way for handling the special EndOfFileToken that is needed to store all final trivia in a SourceText that is not owned by any other SyntaxToken.

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public interface ICompilationUnitSyntax

The ICompilationUnitSyntax type exposes the following members.

Properties
  NameDescription
Public propertyEndOfFileToken
Represents the end of the source file. This SyntaxToken may have SyntaxTrivia (whitespace, comments, directives) attached to it.
Top
See Also