Udostępnij za pośrednictwem


ICompilationUnitSyntax Interface

Definition

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.

public interface class ICompilationUnitSyntax
public interface ICompilationUnitSyntax
type ICompilationUnitSyntax = interface
Public Interface ICompilationUnitSyntax
Derived

Properties

EndOfFileToken

Represents the end of the source file. This SyntaxToken may have SyntaxTrivia (whitespace, comments, directives) attached to it.

Applies to