1 2 3 4
let fun = { foo }: {}; pos = builtins.unsafeGetAttrPos "foo" (builtins.functionArgs fun); in { inherit (pos) column line; file = baseNameOf pos.file; }