LeafBlock Class

Base class for all leaf blocks.

public abstract class LeafBlock : Block

See also

Inheritance
Block LeafBlock

Constructors

NameDescription
LeafBlock(BlockParser?)Initializes a new instance of the LeafBlock class.

LeafBlock(BlockParser?)

LeafBlock.cs

Initializes a new instance of the LeafBlock class.

protected LeafBlock(BlockParser? parser)

Parameters

parser BlockParser?
The parser used to create this block.

Properties

NameDescription
InlineGets or sets the inline syntax tree (may be null).
ProcessInlinesGets or sets a value indicating whether LeafBlock.Lines must be processed as inline into the LeafBlock.Inline property.

Gets or sets the inline syntax tree (may be null).

public ContainerInline? Inline { get; set; }

Property value

ContainerInline?

ProcessInlines

LeafBlock.cs

Gets or sets a value indicating whether LeafBlock.Lines must be processed as inline into the LeafBlock.Inline property.

public bool ProcessInlines { get; set; }

Property value

bool

Methods

NameDescription
AppendLine(StringSlice, int, int, int, bool)Appends the specified line to this instance.

AppendLine(StringSlice, int, int, int, bool)

LeafBlock.cs

Appends the specified line to this instance.

public void AppendLine(ref StringSlice slice, int column, int line, int sourceLinePosition, bool trackTrivia)

Parameters

slice StringSlice
The slice.
column int
The column.
line int
The line.
sourceLinePosition int
trackTrivia bool
Whether to keep track of trivia such as whitespace, extra heading characters and unescaped string values.

Fields

NameDescription
LinesGets or sets the string lines accumulated for this leaf block. May be null after process inlines have occurred.

Lines

Gets or sets the string lines accumulated for this leaf block. May be null after process inlines have occurred.

public StringLineGroup Lines