Function fnType [src]

Prototype

pub fn fnType( self: *Builder, ret: Type, params: []const Type, kind: Type.Function.Kind, ) Allocator.Error!Type

Parameters

self: *Builderret: Typeparams: []const Typekind: Type.Function.Kind

Source

pub fn fnType( self: *Builder, ret: Type, params: []const Type, kind: Type.Function.Kind, ) Allocator.Error!Type { try self.ensureUnusedTypeCapacity(1, Type.Function, params.len); switch (kind) { inline else => |comptime_kind| return self.fnTypeAssumeCapacity(ret, params, comptime_kind), } }