Make parameters order uniform.

This commit is contained in:
Stephen Chung
2022-11-04 21:47:09 +08:00
parent 0756994038
commit 35b02ce9b7
14 changed files with 284 additions and 265 deletions

View File

@@ -131,7 +131,7 @@ impl Engine {
} else {
&lib
};
self.eval_global_statements(scope, global, caches, statements, lib, 0)?;
self.eval_global_statements(global, caches, lib, 0, scope, statements)?;
}
#[cfg(feature = "debugging")]
@@ -142,7 +142,7 @@ impl Engine {
ast.as_ref(),
];
let node = &crate::ast::Stmt::Noop(crate::Position::NONE);
self.run_debugger(scope, global, lib, &mut None, node, 0)?;
self.run_debugger(global, caches, lib, 0, scope, &mut None, node)?;
}
Ok(())