pub fn fnType( self: *Builder, ret: Type, params: []const Type, kind: Type.Function.Kind, ) Allocator.Error!Type
self: *Builder
ret: Type
params: []const Type
kind: Type.Function.Kind
10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129
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), } }