mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
docs: document unsafeGetAttrPos
This commit is contained in:
parent
9b0f455609
commit
39ce478283
1 changed files with 6 additions and 0 deletions
|
@ -2775,7 +2775,13 @@ static void prim_unsafeGetAttrPos(EvalState & state, const PosIdx pos, Value * *
|
||||||
|
|
||||||
static RegisterPrimOp primop_unsafeGetAttrPos(PrimOp {
|
static RegisterPrimOp primop_unsafeGetAttrPos(PrimOp {
|
||||||
.name = "__unsafeGetAttrPos",
|
.name = "__unsafeGetAttrPos",
|
||||||
|
.args = {"s", "set"},
|
||||||
.arity = 2,
|
.arity = 2,
|
||||||
|
.doc = R"(
|
||||||
|
`unsafeGetAttrPos` returns the position of the attribute named *s*
|
||||||
|
from *set*. This is used by Nixpkgs to provide location information
|
||||||
|
in error messages.
|
||||||
|
)",
|
||||||
.fun = prim_unsafeGetAttrPos,
|
.fun = prim_unsafeGetAttrPos,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue