irSourceLocation
fun IrBuilderWithScope.irSourceLocation(constructor: IrConstructorSymbol, file: IrFile, offset: Int, function: String): IrExpression?(source)
Builds SourceLocation(file, line, function) for the source offset inside file — the value the instrumentation passes attach to emitted events (a call site in io.github.smyrgeorge.log4k.compiler.callsite.CallSiteIrTransformer, a function declaration in io.github.smyrgeorge.log4k.compiler.logged.LoggedIrTransformer). Returns null for synthetic offsets — there is no source position to record.