basic_parts#
Common building blocks for the treescope intermediate representation.
Classes
An outlined box, which displays in "block" mode when rendered to HTML. |
|
A part whose defaults indicate no renderable content, for subclassing. |
|
A group that wraps its child in a span, and may apply CSS styles. |
|
A group that marks its child as having a tag for layout purposes. |
|
Helper base class that defers methods to a child attribute. |
|
A definitely-empty part, which can be detected and special-cased. |
|
Renders conditionally depending on whether it's collapsed or expanded. |
|
A sequence of children, one per line, and indented. |
|
A sequence of children, one per line, not indented. |
|
Renders conditionally depending on whether it's in roundtrip mode. |
|
Modifies its child so that selections outside it don't include it. |
|
A sequence of children parts, rendered inline. |
|
Renders conditionally depending on combination of roundtrip/collapsed. |
|
A raw text literal. |
|
A vertical space in HTML mode. |
|
Customized renderer that shows extra info on hover. |
Functions
Concatenates tree parts and appends their line comments at the end. |
|
|
Builds a Siblings part from inline arguments. |
|
Combines siblings that may have annotations, aggregating separately. |