From fc33fd86b7727365caab44c05a90d5b52209131b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Nov 2013 20:14:54 +0100 Subject: Add a symbol __curPos that expands to the current source location I.e. an attribute set { file = ; line = ; column = ; }. --- tests/lang/eval-okay-curpos.nix | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/lang/eval-okay-curpos.nix (limited to 'tests/lang/eval-okay-curpos.nix') diff --git a/tests/lang/eval-okay-curpos.nix b/tests/lang/eval-okay-curpos.nix new file mode 100644 index 000000000000..b79553df0bd3 --- /dev/null +++ b/tests/lang/eval-okay-curpos.nix @@ -0,0 +1,5 @@ +# Bla +let + x = __curPos; + y = __curPos; +in [ x.line x.column y.line y.column ] -- cgit 1.4.1