The expr of AttrNames/DynamicAttrDefs is always an ExprConcatStrings

This commit is contained in:
Shea Levy
2014-03-10 10:14:50 +01:00
committed by Eelco Dolstra
parent 908e9ce259
commit 049a379ec6
3 changed files with 10 additions and 12 deletions
+2 -2
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)));
}
;