mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
Further factorise PASS_1 out of specific emit code.
This commit is contained in:
@@ -46,10 +46,10 @@ typedef struct _scope_t {
|
||||
*/
|
||||
int num_locals;
|
||||
int stack_size;
|
||||
int unique_code_id;
|
||||
uint unique_code_id;
|
||||
} scope_t;
|
||||
|
||||
scope_t *scope_new(scope_kind_t kind, py_parse_node_t pn);
|
||||
scope_t *scope_new(scope_kind_t kind, py_parse_node_t pn, uint unique_code_id);
|
||||
id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added);
|
||||
id_info_t *scope_find(scope_t *scope, qstr qstr);
|
||||
id_info_t *scope_find_global(scope_t *scope, qstr qstr);
|
||||
|
||||
Reference in New Issue
Block a user