Documentation
¶
Overview ¶
Package irb keeps track of IRs being built and how to add them to the package declarations.
Index ¶
- type Builder
- func (ibld *Builder[T]) Build(bld Node[T]) (ir.Node, bool)
- func (ibld *Builder[T]) Cache(bld Node[T]) (ir.Node, bool)
- func (ibld *Builder[T]) Decls() *ir.Declarations
- func (ibld *Builder[T]) Pkg() *ir.Package
- func (ibld *Builder[T]) Register(decl Declarator)
- func (ibld *Builder[T]) Scope() T
- func (ibld *Builder[T]) Set(bld Node[T], n ir.Node)
- type Declarator
- type Node
- type NodeF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder[T any] struct { // contains filtered or unexported fields }
Builder are IR nodes already built as well as their declarators.
func (*Builder[T]) Decls ¶
func (ibld *Builder[T]) Decls() *ir.Declarations
Decls returns the IR declarations of everything that has been declared until this point.
func (*Builder[T]) Register ¶
func (ibld *Builder[T]) Register(decl Declarator)
Register appends a declarator to declare a node in the package declarations.
type Declarator ¶
type Declarator func(*ir.Declarations)
Declarator declares a node in the IR package declarations.
Click to show internal directories.
Click to hide internal directories.