Function typeOf [src]
Prototype
pub fn typeOf(self: Value, function: Function.Index, builder: *Builder) Type Parameters
self: Valuefunction: Function.Indexbuilder: *Builder Source
pub fn typeOf(self: Value, function: Function.Index, builder: *Builder) Type {
return switch (self.unwrap()) {
.instruction => |instruction| instruction.typeOf(function, builder),
.constant => |constant| constant.typeOf(builder),
.metadata => .metadata,
};
}