Interface ICompilationUnitSyntax
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: Loretta.CodeAnalysis
Assembly: Loretta.CodeAnalysis.dll
Syntax
public interface ICompilationUnitSyntax
Properties
| Improve this Doc View SourceEndOfFileToken
Represents the end of the source file. This SyntaxToken may have SyntaxTrivia (whitespace, comments, directives) attached to it.
Declaration
SyntaxToken EndOfFileToken { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |