FIX: our DOT binary operator change broke symbol validation logic for macros.

This commit is contained in:
Jeremy Wall 2019-01-07 19:43:50 -06:00
parent 83a641e740
commit 8dc5b43a93

View File

@ -424,7 +424,9 @@ impl MacroDef {
match stack.pop().unwrap() {
&Expression::Binary(ref bexpr) => {
stack.push(&bexpr.left);
stack.push(&bexpr.right);
if bexpr.kind != BinaryExprType::DOT {
stack.push(&bexpr.right);
}
}
&Expression::Grouped(ref expr) => {
stack.push(expr);