Meziantou.Framework.Language namespace

Classes

NameDescription
DiagnosticRepresents a diagnostic produced while reading source text.
DiagnosticDescriptorDescribes a diagnostic definition: its id, title, message template, and default severity.
LocationRepresents where something was found in source: a character range and, when it is known, the text that range indexes into.
SeparatedSyntaxListBuilds SeparatedSyntaxList<TNode> instances.
SourceTextRepresents immutable source text with line information and text-change application helpers.
SyntaxAnnotationA marker that can be attached to a node, token, or trivia and found again after the tree has been edited.
SyntaxListBuilds SyntaxList<TNode> instances.
SyntaxNodeA node in a syntax tree: a position, a parent, and a view onto the shared immutable node that holds the structure.
SyntaxNodeExtensionsOperations that return the same node type they were given.
SyntaxTreeA parsed document: its text, the tree over it, and the diagnostics the parser produced.
SyntaxWalkerWalks a tree without knowing the language that produced it.

Structs

NameDescription
ChildSyntaxListThe children of a node, with the lists among them flattened away.
ChildSyntaxList.EnumeratorWalks a ChildSyntaxList without allocating.
ChildSyntaxList.ReversedThe children of a node, from last to first.
ChildSyntaxList.Reversed.EnumeratorWalks a ChildSyntaxList.Reversed without allocating.
LinePositionRepresents a zero-based line number and the zero-based character offset within that line.
LinePositionSpanRepresents a range of text between two LinePosition values.
SeparatedSyntaxList<TNode>A sequence of nodes with a separator token between each pair, and optionally one after the last.
SeparatedSyntaxList<TNode>.EnumeratorWalks a SeparatedSyntaxList<TNode> without allocating.
SyntaxList<TNode>A sequence of nodes of the same kind, held in one slot of their parent.
SyntaxList<TNode>.EnumeratorWalks a SyntaxList<TNode> without allocating.
SyntaxNodeOrTokenEither a node or a token, as they appear side by side among the children of a node.
SyntaxNodeOrTokenListA sequence that mixes nodes and tokens, as a separated list does.
SyntaxNodeOrTokenList.EnumeratorWalks a SyntaxNodeOrTokenList without allocating.
SyntaxTokenA terminal of the grammar: the smallest piece of a tree that carries text.
SyntaxTokenListA sequence of tokens held in one slot of their parent.
SyntaxTokenList.EnumeratorWalks a SyntaxTokenList without allocating.
SyntaxTriviaA run of text a parser keeps but does not give meaning to, such as whitespace or a comment.
SyntaxTriviaListThe trivia on one side of a token.
SyntaxTriviaList.EnumeratorWalks a SyntaxTriviaList without allocating.
TextChangeRepresents a text replacement applied to a SourceText or to a syntax tree.
TextChangeRangeDescribes a region of old text that was replaced, and how long the replacement is.
TextLineDescribes a single logical line in a SourceText instance.
TextSpanRepresents a contiguous character range in text.

Enums

NameDescription
DiagnosticSeverityIndicates the severity level of a Diagnostic.
SyntaxRemoveOptionsWhat to do with the trivia around a node that is being removed.
SyntaxWalkerDepthHow far down a SyntaxWalker goes.