diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-04-02 05:03:58 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-04-02 05:52:52 +0200 |
commit | c34e96f7e0d53894f302134b2f90f83b20ffd22a (patch) | |
tree | d7cb3742e2f2fe4327b768fc5dcf168297ff19f9 /tests/lang/eval-okay-getattrpos-functionargs.exp | |
parent | a7540294cfae82c098e8691cd5212a9184add574 (diff) |
Make function arguments retain position info
This allows querying the location of function arguments. E.g.
builtins.unsafeGetAttrPos "x" (builtins.functionArgs ({ x }: null))
=> { column = 57; file = "/home/infinisil/src/nix/inst/test.nix"; line = 1; }
Diffstat (limited to 'tests/lang/eval-okay-getattrpos-functionargs.exp')
-rw-r--r-- | tests/lang/eval-okay-getattrpos-functionargs.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-getattrpos-functionargs.exp b/tests/lang/eval-okay-getattrpos-functionargs.exp new file mode 100644 index 000000000..7f9ac40e8 --- /dev/null +++ b/tests/lang/eval-okay-getattrpos-functionargs.exp @@ -0,0 +1 @@ +{ column = 11; file = "eval-okay-getattrpos-functionargs.nix"; line = 2; } |