Table of Contents

Class MarkupSyntaxNode

Namespace
Icy.Design.Syntax
Assembly
IcyUI.Design.dll

The base class of every node in a markup syntax tree.

public abstract class MarkupSyntaxNode
Inheritance
MarkupSyntaxNode
Derived
Inherited Members
Extension Methods

Remarks

Nodes are immutable once Parse(string) returns. Every node carries the exact range of source text it came from, delimiters included, so an edit can be expressed as a minimal TextChange.

Properties

Parent

Gets the element this node belongs to: the owner of an attribute, or the element whose content holds this node. null for a top-level node.

public ElementSyntax? Parent { get; }

Property Value

ElementSyntax

Span

Gets the range of source text this node covers, including its markup delimiters.

public TextSpan Span { get; }

Property Value

TextSpan