Component

zio.wasm.componentmodel.Component
See theComponent companion object
final case class Component(sections: Sections[ComponentIndexSpace]) extends Section[ComponentIndexSpace]

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAlias(alias: Alias, insertionPoint: InsertionPoint): (SectionReference, Component)
def addComponent(component: Component, insertionPoint: InsertionPoint): (ComponentIdx, Component)
def addComponentExport(componentExport: ComponentExport, insertionPoint: InsertionPoint): (SectionReference, Component)
def addComponentImport(componentImport: ComponentImport, insertionPoint: InsertionPoint): (SectionReference, Component)
def addComponentInstance(componentInstance: ComponentInstance, insertionPoint: InsertionPoint): (InstanceIdx, Component)
def addComponentType(componentType: ComponentType, insertionPoint: InsertionPoint): (ComponentTypeIdx, Component)
def getFunc(idx: FuncIdx): Option[Canon | Alias]
def replaceComponent(idx: ComponentIdx, newComponent: Component): Component

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

lazy val aliases: Chunk[Alias]

Collects all Alias.Outer aliases from top level and from type definitions which are pointing outside of the component, and makes them relative to the compoennt's root (so ct=1 is the parent component for each)

Collects all Alias.Outer aliases from top level and from type definitions which are pointing outside of the component, and makes them relative to the compoennt's root (so ct=1 is the parent component for each)

Attributes

lazy val canons: Chunk[Canon]
lazy val coreTypes: Chunk[CoreType]