![]() | DirectiveTriviaSyntax Class |
Namespace: Microsoft.CodeAnalysis.CSharp.Syntax
The DirectiveTriviaSyntax type exposes the following members.
Name | Description | |
---|---|---|
![]() | ContainsAnnotations |
Determines whether this node or any sub node, token or trivia has annotations.
(Inherited from SyntaxNode.) |
![]() | ContainsDiagnostics |
Determines whether this node or any of its descendant nodes, tokens or trivia have any diagnostics on them.
(Inherited from SyntaxNode.) |
![]() | ContainsDirectives |
Determines whether this node has any descendant preprocessor directives.
(Inherited from SyntaxNode.) |
![]() | ContainsSkippedText |
Determines whether this node has any descendant skipped text.
(Inherited from SyntaxNode.) |
![]() | DirectiveNameToken | |
![]() | EndOfDirectiveToken | |
![]() | FullSpan |
The absolute span of this node in characters, including its leading and trailing trivia.
(Inherited from SyntaxNode.) |
![]() | HashToken | |
![]() | HasLeadingTrivia |
Determines whether this node has any leading trivia.
(Inherited from SyntaxNode.) |
![]() | HasStructuredTrivia |
Determines whether a descendant trivia of this node is structured.
(Inherited from SyntaxNode.) |
![]() | HasTrailingTrivia |
Determines whether this node has any trailing trivia.
(Inherited from SyntaxNode.) |
![]() | IsActive | |
![]() | IsMissing |
Determines whether the node represents a language construct that was actually parsed
from the source code. Missing nodes are generated by the parser in error scenarios to
represent constructs that should have been present in the source code in order to
compile successfully but were actually missing.
(Inherited from SyntaxNode.) |
![]() | IsStructuredTrivia |
Determines whether this node represents a structured trivia.
(Inherited from SyntaxNode.) |
![]() | KindText | (Inherited from SyntaxNode.) |
![]() | Language |
The language name that this node is syntax of.
(Inherited from CSharpSyntaxNode.) |
![]() | Parent |
The node that contains this node in its ChildNodes collection.
(Inherited from SyntaxNode.) |
![]() | ParentTrivia |
Get parent trivia.
(Inherited from StructuredTriviaSyntax.) |
![]() | RawKind |
An integer representing the language specific kind of this node.
(Inherited from SyntaxNode.) |
![]() | Span |
The absolute span of this node in characters, not including its leading and trailing trivia.
(Inherited from SyntaxNode.) |
![]() | SpanStart | (Inherited from SyntaxNode.) |
![]() | SyntaxTree |
Returns SyntaxTree that owns the node or null if node does not belong to a
SyntaxTree
(Inherited from SyntaxNode.) |
![]() | SyntaxTreeCore | (Inherited from CSharpSyntaxNode.) |
Name | Description | |
---|---|---|
![]() | Accept(CSharpSyntaxVisitor) | (Inherited from CSharpSyntaxNode.) |
![]() | AcceptTResult(CSharpSyntaxVisitorTResult) | (Inherited from CSharpSyntaxNode.) |
![]() | Ancestors | (Inherited from SyntaxNode.) |
![]() | AncestorsAndSelf | (Inherited from SyntaxNode.) |
![]() | ChildNodes |
Gets a list of the child nodes in prefix document order.
(Inherited from SyntaxNode.) |
![]() | ChildNodesAndTokens |
The list of child nodes and tokens of this node, where each element is a SyntaxNodeOrToken instance.
(Inherited from SyntaxNode.) |
![]() | ChildThatContainsPosition | (Inherited from SyntaxNode.) |
![]() | ChildTokens |
Gets a list of the direct child tokens of this node.
(Inherited from SyntaxNode.) |
![]() | Contains |
Determines if the specified node is a descendant of this node.
(Inherited from SyntaxNode.) |
![]() | CopyAnnotationsToT |
Copies all SyntaxAnnotations, if any, from this SyntaxNode instance and attaches them to a new instance based on node.
(Inherited from SyntaxNode.) |
![]() | DescendantNodes(Void, SyntaxNode) | (Inherited from SyntaxNode.) |
![]() | DescendantNodes(Void, SyntaxNode, TextSpan) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndSelf(Void, SyntaxNode) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndSelf(Void, SyntaxNode, TextSpan) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndTokens(Void, SyntaxNodeOrToken) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndTokens(Void, SyntaxNodeOrToken, TextSpan) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndTokensAndSelf(Void, SyntaxNodeOrToken) | (Inherited from SyntaxNode.) |
![]() | DescendantNodesAndTokensAndSelf(Void, SyntaxNodeOrToken, TextSpan) | (Inherited from SyntaxNode.) |
![]() | DescendantTokens(Void, SyntaxToken) | (Inherited from SyntaxNode.) |
![]() | DescendantTokens(Void, SyntaxToken, TextSpan) | (Inherited from SyntaxNode.) |
![]() | DescendantTrivia(Void, SyntaxTrivia) | (Inherited from SyntaxNode.) |
![]() | DescendantTrivia(Void, SyntaxTrivia, TextSpan) | (Inherited from SyntaxNode.) |
![]() | EquivalentToCore |
Determine if this node is structurally equivalent to another.
(Inherited from CSharpSyntaxNode.) |
![]() | FindNode |
Finds the node with the smallest FullSpan that contains span.
getInnermostNodeForTie is used to determine the behavior in case of a tie (i.e. a node having the same span as its parent).
If getInnermostNodeForTie is true, then it returns lowest descending node encompassing the given span.
Otherwise, it returns the outermost node encompassing the given span.
(Inherited from SyntaxNode.) |
![]() | FindToken |
Finds a token according to the following rules:
1) If position matches the End of the node/s FullSpan and the node is CompilationUnit,
then EoF is returned.
2) If node.FullSpan.Contains(position) then the token that contains given position is
returned.
3) Otherwise an ArgumentOutOfRangeException is thrown
(Inherited from CSharpSyntaxNode.) |
![]() | FindTokenCore(Int32, Boolean) |
Finds a descendant token of this node whose span includes the supplied position.
(Inherited from SyntaxNode.) |
![]() | FindTokenCore(Int32, FuncT, TResult) | (Inherited from SyntaxNode.) |
![]() | FindTrivia(Int32, FuncT, TResult) | (Inherited from SyntaxNode.) |
![]() | FindTrivia(Int32, Boolean) |
Finds a descendant trivia of this node whose span includes the supplied position.
(Inherited from CSharpSyntaxNode.) |
![]() | FindTrivia(Int32, FuncT, TResult) | (Inherited from CSharpSyntaxNode.) |
![]() | FindTriviaCore |
Finds a descendant trivia of this node whose span includes the supplied position.
(Inherited from SyntaxNode.) |
![]() | FirstAncestorOrSelfTNode | (Inherited from SyntaxNode.) |
![]() | GetAnnotatedNodes(Void) | (Inherited from SyntaxNode.) |
![]() | GetAnnotatedNodesAndTokens(Void) | (Inherited from SyntaxNode.) |
![]() | GetAnnotatedTokens(Void) | (Inherited from SyntaxNode.) |
![]() | GetAnnotatedTrivia(Void) | (Inherited from SyntaxNode.) |
![]() | GetAnnotations(Void) | (Inherited from SyntaxNode.) |
![]() | GetDiagnostics |
Gets a list of all the diagnostics in the sub tree that has this node as its root.
This method does not filter diagnostics based on #pragmas and compiler options
like nowarn, warnaserror etc.
(Inherited from CSharpSyntaxNode.) |
![]() | GetFirstDirective | (Inherited from CSharpSyntaxNode.) |
![]() | GetFirstToken |
Gets the first token of the tree rooted by this node.
(Inherited from CSharpSyntaxNode.) |
![]() | GetLastDirective | (Inherited from CSharpSyntaxNode.) |
![]() | GetLastToken |
Gets the last non-zero-width token of the tree rooted by this node.
(Inherited from CSharpSyntaxNode.) |
![]() | GetLeadingTrivia |
The list of trivia that appears before this node in the source code.
(Inherited from CSharpSyntaxNode.) |
![]() | GetLocation |
Gets a Location for this node.
(Inherited from CSharpSyntaxNode.) |
![]() | GetNextDirective | |
![]() | GetPreviousDirective | |
![]() | GetRedT | (Inherited from SyntaxNode.) |
![]() | GetRedAtZeroT | (Inherited from SyntaxNode.) |
![]() | GetReference |
Gets a SyntaxReference for this syntax node. CommonSyntaxReferences can be used to
regain access to a syntax node without keeping the entire tree and source text in
memory.
(Inherited from SyntaxNode.) |
![]() | GetRelatedDirectives | |
![]() | GetText |
Gets the full text of this node as an new SourceText instance.
(Inherited from SyntaxNode.) |
![]() | GetTrailingTrivia |
The list of trivia that appears after this node in the source code.
(Inherited from CSharpSyntaxNode.) |
![]() | HasAnnotation |
Determines whether this node has the specific annotation.
(Inherited from SyntaxNode.) |
![]() | HasAnnotations(IEnumerableT) | (Inherited from SyntaxNode.) |
![]() | HasAnnotations(String) |
Determines whether this node has any annotations with the specific annotation kind.
(Inherited from SyntaxNode.) |
![]() | InsertNodesInListCore(SyntaxNode, IEnumerableT, Void) | (Inherited from SyntaxNode.) |
![]() | InsertNodesInListCore(SyntaxNode, IEnumerableT, Void) | (Inherited from CSharpSyntaxNode.) |
![]() | InsertTokensInListCore(SyntaxToken, IEnumerableT, Void) | (Inherited from SyntaxNode.) |
![]() | InsertTokensInListCore(SyntaxToken, IEnumerableT, Void) | (Inherited from CSharpSyntaxNode.) |
![]() | InsertTriviaInListCore(SyntaxTrivia, IEnumerableT, Void) | (Inherited from SyntaxNode.) |
![]() | InsertTriviaInListCore(SyntaxTrivia, IEnumerableT, Void) | (Inherited from CSharpSyntaxNode.) |
![]() | IsEquivalentTo(SyntaxNode) |
Determine whether this node is structurally equivalent to another.
(Inherited from SyntaxNode.) |
![]() | IsEquivalentTo(SyntaxNode, Boolean) |
Determines if two nodes are the same, disregarding trivia differences.
(Inherited from SyntaxNode.) |
![]() | IsEquivalentToCore | (Inherited from CSharpSyntaxNode.) |
![]() | IsPartOfStructuredTrivia |
Determines whether this node is a descendant of a structured trivia.
(Inherited from SyntaxNode.) |
![]() | Kind |
Returns the SyntaxKind of the node.
(Inherited from CSharpSyntaxNode.) |
![]() | NormalizeWhitespaceCore | (Inherited from CSharpSyntaxNode.) |
![]() | RemoveNodesCore(IEnumerableT, Void) | (Inherited from SyntaxNode.) |
![]() | RemoveNodesCore(IEnumerableT, Void) | (Inherited from CSharpSyntaxNode.) |
![]() | ReplaceCoreTNode(IEnumerableT, Void, TNode, FuncT1, T2, TResult, Char, TNode) | (Inherited from SyntaxNode.) |
![]() | ReplaceCoreTNode(IEnumerableT, Void, TNode, FuncT1, T2, TResult, Char, TNode) | (Inherited from CSharpSyntaxNode.) |
![]() | ReplaceNodeInListCore(SyntaxNode, IEnumerableT) | (Inherited from SyntaxNode.) |
![]() | ReplaceNodeInListCore(SyntaxNode, IEnumerableT) | (Inherited from CSharpSyntaxNode.) |
![]() | ReplaceTokenInListCore(SyntaxToken, IEnumerableT) | (Inherited from SyntaxNode.) |
![]() | ReplaceTokenInListCore(SyntaxToken, IEnumerableT) | (Inherited from CSharpSyntaxNode.) |
![]() | ReplaceTriviaInListCore(SyntaxTrivia, IEnumerableT) | (Inherited from SyntaxNode.) |
![]() | ReplaceTriviaInListCore(SyntaxTrivia, IEnumerableT) | (Inherited from CSharpSyntaxNode.) |
![]() | SerializeTo | (Inherited from SyntaxNode.) |
![]() | ToFullString |
Returns full string representation of this node including its leading and trailing trivia.
(Inherited from SyntaxNode.) |
![]() | ToString |
Returns the string representation of this node, not including its leading and trailing trivia.
(Inherited from SyntaxNode.) |
![]() | WriteTo |
Writes the full text of this node to the specified TextWriter.
(Inherited from SyntaxNode.) |
Name | Description | |
---|---|---|
![]() | GetCurrentNodeTNode |
Gets the node within the subtree corresponding to the original tracked node.
Use TrackNodes to start tracking nodes.
(Defined by SyntaxNodeExtensions.) |
![]() | GetFirstDirective(FuncT, TResult) | Overloaded. (Defined by VisualBasicExtensions.) |
![]() | GetFirstDirective(FuncT, TResult) | Overloaded. (Defined by CSharpExtensions.) |
![]() | GetLastDirective(FuncT, TResult) | Overloaded. (Defined by VisualBasicExtensions.) |
![]() | GetLastDirective(FuncT, TResult) | Overloaded. (Defined by CSharpExtensions.) |
![]() | IsKind(SyntaxKind) | Overloaded.
Determines if SyntaxNode is a specified kind.
(Defined by VisualBasicExtensions.) |
![]() | IsKind(SyntaxKind) | Overloaded. (Defined by CSharpExtensions.) |
![]() | Kind | Overloaded. (Defined by VisualBasicExtensions.) |
![]() | Kind | Overloaded. (Defined by CSharpExtensions.) |