Skip to content

Reference Edits

ReferenceEdits

Bases: NamedTuple

REFE value: the owning reference node, then two sections of edits grouped by the reference node they apply to. Both sections share one layout; what sends an edit to one or the other is not known yet.

Attributes

owner

owner: str

sections

sections: list[list[EditGroup]]

Methods:

all_edits

all_edits() -> Iterator[tuple[str, ReferenceEdit]]

ReferenceEdit

Bases: NamedTuple

One reference edit. side (kind 5 only): 3 when the referenced plug is the source of the connection, 4 when it is the destination, 0 when both ends are referenced.

Attributes

kind

kind: int

side

side: int | None

strings

strings: list[str]