mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
py, compiler: Turn id_info_t.param into a set of flags.
So we can add more flags.
This commit is contained in:
@@ -73,10 +73,10 @@ id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added) {
|
||||
// handled by the compiler because it adds arguments before compiling the body
|
||||
id_info_t *id_info = &scope->id_info[scope->id_info_len++];
|
||||
|
||||
id_info->param = false;
|
||||
id_info->kind = 0;
|
||||
id_info->qstr = qstr;
|
||||
id_info->flags = 0;
|
||||
id_info->local_num = 0;
|
||||
id_info->qstr = qstr;
|
||||
*added = true;
|
||||
return id_info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user