Skip to content

Block

graph BT
N1["Block"] -->|inherits| N2["Instruction"];
N1["Block"] -->|inherits| N3["ReverseIterable[Instruction]"];
N1["Block"] -->|inherits| N4["Length"];
N4["Length"] -->|inherits| N5["Any"];
N3["ReverseIterable[Instruction]"] -->|inherits| N6["BidirectionalIterable[Instruction]"];
N6["BidirectionalIterable[Instruction]"] -->|inherits| N7["Iterable[Instruction]"];
N7["Iterable[Instruction]"] -->|inherits| N8["IterableAT"];
N8["IterableAT"] -->|inherits| N5["Any"];
N2["Instruction"] -->|inherits| N9["AST"];
N9["AST"] -->|inherits| N10["Stringable"];
N10["Stringable"] -->|inherits| N5["Any"];

Characteristics

Quality Value
Inherits Instruction, ReverseIterable[Instruction], Length
Extends N/A
Decorators N/A
Is enum false
Is sealed false
Is extern false
Is abstract false
Is generator false
Has value semantics false
Has stored properties true
Should register destructor true
Has atomic memory false
Is copy assignable false
Is zero initializable false

Methods

construct

construct (s strictly @Self, ast_ptr: Pointer = Pointer(), owner: Bool = true) -> Self

get_iterator

get_iterator (s nom @Self) -> BlockIterator

get_reverse_iterator

get_reverse_iterator (s nom @Self) -> BlockIterator

add_instruction

#strict
add_instruction (s nom @Self, instruction nom Instruction) -> Nil

instruction

#strict
instruction (s nom @Self, index Len) -> nom Instruction

len

#strict
len (s nom @Self) -> Len

Properties

doc_string (computed)

doc_string String

decorators (computed)

decorators nom DecoratorList?

status (computed)

status UInt32

sets and returns the ast status code defined by the compiler


__ast_ptr

__ast_ptr Pointer

__is_owner

__is_owner Bool