about summary refs log tree commit diff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·43+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-05-07T12·43+0000
commit01e58adce0767f1a484d80fcbcf67c7945cbc146 (patch)
treee4d644b176cc3d73ccdb6dc6b1eb671721fff02b /src/libexpr/nixexpr.hh
parent83d7b89660ebb942ad844b9be260492b2ea9fb24 (diff)
* Store position info for inherited attributes.
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index 36cb4e53cd7c..1c72441b2792 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -131,9 +131,10 @@ struct ExprAttrs : Expr
 {
     bool recursive;
     typedef std::pair<Expr *, Pos> Attr;
+    typedef std::pair<VarRef, Pos> Inherited;
     typedef std::map<Symbol, Attr> Attrs;
     Attrs attrs;
-    list<VarRef> inherited;
+    list<Inherited> inherited;
     std::map<Symbol, Pos> attrNames; // used during parsing
     ExprAttrs() : recursive(false) { };
     COMMON_METHODS