canMultAssignWith method

bool canMultAssignWith(
  1. MathExpr term
)

Implementation

bool canMultAssignWith(MathExpr term) => switch (term) {
  final GroupExpr _ => false,
  final FuncExpr _ => false,
  final RawExpr r => switch (r.token.type) {
    TokenType.kRaw => true,
    _ => false,
  },
  final MemoryAccess m => switch (m.type) {
    MemoryAccessType.call => false,
    MemoryAccessType.field => true,
    MemoryAccessType.table => true,
  },
  _ => false,
};