Improve speed on common dot/index expressions.

This commit is contained in:
Stephen Chung
2022-06-07 20:38:05 +08:00
parent 84e3296559
commit 8501d9d33f
5 changed files with 51 additions and 26 deletions

View File

@@ -401,6 +401,10 @@ pub enum Expr {
/// func `(` expr `,` ... `)`
FnCall(Box<FnCallExpr>, Position),
/// lhs `.` rhs
///
/// ### Flags
///
/// No flags are defined at this time. Use [`NONE`][ASTFlags::NONE].
Dot(Box<BinaryExpr>, ASTFlags, Position),
/// lhs `[` rhs `]`
///