Represents a trivia in the syntax tree.
public value class SyntaxTrivia : IEquatable<Microsoft::CodeAnalysis::SyntaxTrivia>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
public readonly struct SyntaxTrivia : IEquatable<Microsoft.CodeAnalysis.SyntaxTrivia>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")>]
type SyntaxTrivia = struct
Public Structure SyntaxTrivia
Implements IEquatable(Of SyntaxTrivia)
Determines whether this trivia has any diagnostics on it. If this trivia is a structured trivia then the returned value will indicate whether this trivia or any of its descendant nodes, tokens or trivia have any diagnostics on them.
FullSpanThe absolute span of this trivia in characters. If this trivia is a structured trivia then the returned span will include spans of any leading or trailing trivia present on the child non-terminal node of this trivia.
HasStructureDetermines whether this trivia is a structured trivia.
IsDirectiveDetermines whether this trivia represents a preprocessor directive.
LanguageThe language name that this trivia is syntax of.
RawKindAn integer representing the language specific kind of this trivia.
SpanThe absolute span of this trivia in characters. If this trivia is a structured trivia then the returned span will not include spans of any leading or trailing trivia present on the child non-terminal node of this trivia.
SpanStartSame as accessing Start on Span.
SyntaxTreeSyntaxTree which contains current SyntaxTrivia.
TokenThe parent token that contains this token in its LeadingTrivia or TrailingTrivia collection.
Methods Operators Extension MethodsCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4