Skip to content
ConsoleMonster
Class

CodeStructure

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Optional syntax information from a source parser, using positions in the original input.

Inheritance

  • object
  • CodeStructure

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 2

Constructors

public CodeStructure(IEnumerable<CodeLineRange> blocks, IEnumerable<CodeScope> scopes) #

Creates a reusable structure for excerpts and pages of one source document.

Parameters

blocks System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.CodeLineRange> required
scopes System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.CodeScope> required

Properties

public IReadOnlyList<CodeLineRange> Blocks { get; } #

Blocks kept together on a page when possible.

public IReadOnlyList<CodeScope> Scopes { get; } #

Scope guides supplied by the parser.