nix-super/src/libexpr
Ludovic Courtès 09381cccff Make source location info in the XML output optional.
* src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location'
  parameter.  Provide location XML attributes when it's true.  Update
  callers.
  (nix::printTermAsXML): Likewise.

* src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype;
  have `location' default to `false'.

* src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add
  `location' parameter; update callers.
  (run): Add support for `--no-location'.

* src/nix-instantiate/help.txt: Update accordingly.

* tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the
  XML tests.

* tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New
  files.
2010-03-31 12:38:31 +00:00
..
attr-path.cc * Cleanup. 2007-01-13 14:21:49 +00:00
attr-path.hh * Use a proper namespace. 2006-09-04 21:06:23 +00:00
common-opts.cc * Option --argstr for passing string arguments easily. (NIX-75) 2007-01-14 12:32:44 +00:00
common-opts.hh * Option --argstr for passing string arguments easily. (NIX-75) 2007-01-14 12:32:44 +00:00
eval.cc * Allow unsafe (unspecified) comparisons between attrsets unless 2009-05-12 11:06:24 +00:00
eval.hh * Allow unsafe (unspecified) comparisons between attrsets unless 2009-05-12 11:06:24 +00:00
expr-to-xml.cc Make source location info in the XML output optional. 2010-03-31 12:38:31 +00:00
expr-to-xml.hh Make source location info in the XML output optional. 2010-03-31 12:38:31 +00:00
get-drvs.cc * Support integers and lists of strings in meta fields. This is 2009-06-30 15:53:39 +00:00
get-drvs.hh * Support integers and lists of strings in meta fields. This is 2009-06-30 15:53:39 +00:00
lexer.l * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
Makefile.am * Remove support for old (before Nix 0.12pre12020) databases. 2009-11-06 01:15:44 +00:00
names.cc * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
names.hh * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
nix.sdf First attempt to update Nix SDF grammar to match the actual bison grammar 2008-06-04 14:36:46 +00:00
nixexpr-ast.def * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
nixexpr.cc * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
nixexpr.hh * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
parser.hh * Use a proper namespace. 2006-09-04 21:06:23 +00:00
parser.y Merge r20344 & r20346. 2010-03-14 11:58:07 +00:00
primops.cc * builtins.trace: in the common case that the value is a string, then 2009-10-22 08:10:12 +00:00