LeafBlock Class
- Inheritance
BlockLeafBlock
Constructors
| Name | Description |
|---|---|
| LeafBlock(BlockParser?) | Initializes a new instance of the LeafBlock class. |
LeafBlock(BlockParser?)
LeafBlock.csInitializes a new instance of the LeafBlock class.
protected LeafBlock(BlockParser? parser)Parameters
parserBlockParser?- The parser used to create this block.
Properties
| Name | Description |
|---|---|
| Inline | Gets or sets the inline syntax tree (may be null). |
| ProcessInlines | Gets or sets a value indicating whether LeafBlock.Lines must be processed as inline into the LeafBlock.Inline property. |
Inline
LeafBlock.csGets or sets the inline syntax tree (may be null).
public ContainerInline? Inline { get; set; }Property value
ProcessInlines
LeafBlock.csGets 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
Methods
| Name | Description |
|---|---|
| AppendLine(StringSlice, int, int, int, bool) | Appends the specified line to this instance. |
AppendLine(StringSlice, int, int, int, bool)
LeafBlock.csAppends the specified line to this instance.
public void AppendLine(ref StringSlice slice, int column, int line, int sourceLinePosition, bool trackTrivia)Parameters
sliceStringSlice- The slice.
columnint- The column.
lineint- The line.
sourceLinePositioninttrackTriviabool- Whether to keep track of trivia such as whitespace, extra heading characters and unescaped string values.
Fields
| Name | Description |
|---|---|
| Lines | Gets 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