1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

The expr of AttrNames/DynamicAttrDefs is always an ExprConcatStrings

This commit is contained in:
Shea Levy 2014-03-09 14:41:02 -04:00 committed by Eelco Dolstra
parent 908e9ce259
commit 049a379ec6
3 changed files with 10 additions and 12 deletions

View file

@ -488,7 +488,7 @@ attrpath
$$->push_back(AttrName(str->s));
delete str;
} else
$$->push_back(AttrName($3));
$$->push_back(AttrName(static_cast<ExprConcatStrings *>($3)));
}
| attr { $$ = new vector<AttrName>; $$->push_back(AttrName(data->symbols.create($1))); }
| string_attr
@ -498,7 +498,7 @@ attrpath
$$->push_back(AttrName(str->s));
delete str;
} else
$$->push_back(AttrName($1));
$$->push_back(AttrName(static_cast<ExprConcatStrings *>($1)));
}
;