Reduce size of ParseState.

This commit is contained in:
Stephen Chung
2022-11-24 17:08:43 +08:00
parent b4ef89b596
commit c9d8714fe6
7 changed files with 211 additions and 242 deletions

View File

@@ -120,7 +120,7 @@ impl Engine {
let ast = {
let scope = Scope::new();
let interned_strings = &mut *locked_write(&self.interned_strings);
let mut state = ParseState::new(self, &scope, interned_strings, tokenizer_control);
let mut state = ParseState::new(&scope, interned_strings, tokenizer_control);
self.parse_global_expr(
&mut stream.peekable(),