A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.syntaxtrivia below:

SyntaxTrivia Struct (Microsoft.CodeAnalysis) | Microsoft Learn

SyntaxTrivia Struct Definition

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)
Inheritance
Attributes
Implements
Properties ContainsDiagnostics

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.

FullSpan

The 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.

HasStructure

Determines whether this trivia is a structured trivia.

IsDirective

Determines whether this trivia represents a preprocessor directive.

Language

The language name that this trivia is syntax of.

RawKind

An integer representing the language specific kind of this trivia.

Span

The 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.

SpanStart

Same as accessing Start on Span.

SyntaxTree

SyntaxTree which contains current SyntaxTrivia.

Token

The parent token that contains this token in its LeadingTrivia or TrailingTrivia collection.

Methods Operators Extension Methods

Collaborate 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 article

Was 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