mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Split cache between Python and Erg modules
This commit is contained in:
parent
5916096cc4
commit
5aae4a69a5
22 changed files with 521 additions and 258 deletions
|
@ -353,6 +353,7 @@ impl Context {
|
|||
Str::ever("<unnamed record>"),
|
||||
2,
|
||||
self.mod_cache.clone(),
|
||||
self.py_mod_cache.clone(),
|
||||
self.clone(),
|
||||
);
|
||||
for attr in record.attrs.iter() {
|
||||
|
@ -424,6 +425,7 @@ impl Context {
|
|||
Str::ever("<lambda>"),
|
||||
0,
|
||||
self.mod_cache.clone(),
|
||||
self.py_mod_cache.clone(),
|
||||
self.clone(),
|
||||
);
|
||||
let return_t = lambda_ctx.eval_const_block(&lambda.body, None)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue