Function toMetadata [src]

Prototype

pub fn toMetadata(self: DebugLocation, builder: *Builder) Allocator.Error!Metadata

Parameters

self: DebugLocationbuilder: *Builder

Source

pub fn toMetadata(self: DebugLocation, builder: *Builder) Allocator.Error!Metadata { return switch (self) { .no_location => .none, .location => |location| try builder.debugLocation( location.line, location.column, location.scope, location.inlined_at, ), }; }