DoxigAlpha

typeOf

Function parameters

Parameters

#
function:Function.Index
builder:*Builder

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= 16

Values

#

Source

Implementation

#
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,
    };
}