Label

class Label

Label for the heading and declaration parts of this node or edge.

Members defined in Label (2 members)

decl

Declaration part of this label.

heading

Heading part of this label.

Methods

decl(config: syside.PrinterConfig = ...) str | None

Declaration part of this label.

This part includes anything not otherwise included by the heading up to the body.

Examples:

  • <p> myPart :> Part

config will be used to pretty-print the heading. Note that not all declaration parts are currently implemented.

heading(config: syside.PrinterConfig = ...) str | None

Heading part of this label.

This part includes relevant keywords, modifiers, and metadata prefixes, all wrapped with guillemets.

Examples:

  • «part def»

  • «abstract part def»

  • «#Prefix part def»

config may be used to pretty-print the heading.