Add ser::to_dynamic.

This commit is contained in:
Stephen Chung
2020-07-03 22:42:56 +08:00
parent fa84e5c502
commit 78c94daf46
8 changed files with 678 additions and 31 deletions

View File

@@ -1701,7 +1701,7 @@ fn make_dot_expr(lhs: Expr, rhs: Expr, op_pos: Position) -> Result<Expr, ParseEr
// lhs.func()
(lhs, func @ Expr::FnCall(_)) => Expr::Dot(Box::new((lhs, func, op_pos))),
// lhs.rhs
_ => unreachable!(),
(lhs, rhs) => return Err(PERR::PropertyExpected.into_err(rhs.position())),
})
}