Home
last modified time | relevance | path

Searched refs:elts (Results 1 – 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dmisc.py3 elts = []
6 elts = elts + flatten(elt)
8 elts.append(elt)
9 return elts
13 self.elts = {}
15 return len(self.elts)
17 return elt in self.elts
19 self.elts[elt] = elt
21 return self.elts.keys()
23 return elt in self.elts
[all …]
Dpycodegen.py944 elts = name.split(".")
945 if len(elts) == 1:
947 for elt in elts[1:]:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_urllib.py149 elts = mod_dict[module]
151 for elt in elts[:-1]:
154 names.extend(handle_name(elts[-1], pref))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
DPython.asdl59 | Set(expr* elts)
80 | List(expr* elts, expr_context ctx)
81 | Tuple(expr* elts, expr_context ctx)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
Dunparse.py345 interleave(lambda: self.write(", "), self.dispatch, t.elts)
397 assert(t.elts) # should be at least one element
399 interleave(lambda: self.write(", "), self.dispatch, t.elts)
414 if len(t.elts) == 1:
415 (elt,) = t.elts
419 interleave(lambda: self.write(", "), self.dispatch, t.elts)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
DPython-ast.h229 asdl_seq *elts; member
301 asdl_seq *elts; member
306 asdl_seq *elts; member
468 expr_ty _Py_Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena);
506 expr_ty _Py_List(asdl_seq * elts, expr_context_ty ctx, int lineno, int
509 expr_ty _Py_Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
DPython-ast.h229 asdl_seq *elts; member
301 asdl_seq *elts; member
306 asdl_seq *elts; member
468 expr_ty _Py_Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena);
506 expr_ty _Py_List(asdl_seq * elts, expr_context_ty ctx, int lineno, int
509 expr_ty _Py_Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dast.c405 s = e->v.List.elts; in set_context()
408 if (asdl_seq_LEN(e->v.Tuple.elts)) { in set_context()
410 s = e->v.Tuple.elts; in set_context()
1430 asdl_seq *elts = seq_for_testlist(c, ch); in ast_for_atom() local
1431 if (!elts) in ast_for_atom()
1434 return List(elts, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1452 asdl_seq *elts; in ast_for_atom() local
1454 elts = asdl_seq_new(size, c->c_arena); in ast_for_atom()
1455 if (!elts) in ast_for_atom()
1462 asdl_seq_SET(elts, i / 2, expression); in ast_for_atom()
[all …]
DPython-ast.c1632 Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena) in Set() argument
1639 p->v.Set.elts = elts; in Set()
1943 List(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena in List() argument
1956 p->v.List.elts = elts; in List()
1964 Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena in Tuple() argument
1977 p->v.Tuple.elts = elts; in Tuple()
2673 value = ast2obj_list(o->v.Set.elts, ast2obj_expr); in ast2obj_expr()
2889 value = ast2obj_list(o->v.List.elts, ast2obj_expr); in ast2obj_expr()
2903 value = ast2obj_list(o->v.Tuple.elts, ast2obj_expr); in ast2obj_expr()
5013 asdl_seq* elts; in obj2ast_expr() local
[all …]
Dsymtable.c1221 VISIT_SEQ(st, expr, e->v.Set.elts); in symtable_visit_expr()
1286 VISIT_SEQ(st, expr, e->v.List.elts); in symtable_visit_expr()
1289 VISIT_SEQ(st, expr, e->v.Tuple.elts); in symtable_visit_expr()
1354 !symtable_visit_params(st, arg->v.Tuple.elts, 0)) in symtable_visit_params_nested()
Dcompile.c2089 asdl_seq_LEN(s->v.Assert.test->v.Tuple.elts) > 0) { in compiler_assert()
2506 int n = asdl_seq_LEN(e->v.List.elts); in compiler_list()
2510 VISIT_SEQ(c, expr, e->v.List.elts); in compiler_list()
2520 int n = asdl_seq_LEN(e->v.Tuple.elts); in compiler_tuple()
2524 VISIT_SEQ(c, expr, e->v.Tuple.elts); in compiler_tuple()
3035 n = asdl_seq_LEN(e->v.Set.elts); in compiler_visit_expr()
3036 VISIT_SEQ(c, expr, e->v.Set.elts); in compiler_visit_expr()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dast.py58 return tuple(map(_convert, node.elts))
60 return list(map(_convert, node.elts))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dast.py58 return tuple(map(_convert, node.elts))
60 return list(map(_convert, node.elts))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dast.c405 s = e->v.List.elts; in set_context()
408 if (asdl_seq_LEN(e->v.Tuple.elts)) { in set_context()
410 s = e->v.Tuple.elts; in set_context()
1430 asdl_seq *elts = seq_for_testlist(c, ch); in ast_for_atom() local
1431 if (!elts) in ast_for_atom()
1434 return List(elts, Load, LINENO(n), n->n_col_offset, c->c_arena); in ast_for_atom()
1452 asdl_seq *elts; in ast_for_atom() local
1454 elts = asdl_seq_new(size, c->c_arena); in ast_for_atom()
1455 if (!elts) in ast_for_atom()
1462 asdl_seq_SET(elts, i / 2, expression); in ast_for_atom()
[all …]
DPython-ast.c1615 Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena) in Set() argument
1622 p->v.Set.elts = elts; in Set()
1926 List(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena in List() argument
1939 p->v.List.elts = elts; in List()
1947 Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, PyArena in Tuple() argument
1960 p->v.Tuple.elts = elts; in Tuple()
2656 value = ast2obj_list(o->v.Set.elts, ast2obj_expr); in ast2obj_expr()
2872 value = ast2obj_list(o->v.List.elts, ast2obj_expr); in ast2obj_expr()
2886 value = ast2obj_list(o->v.Tuple.elts, ast2obj_expr); in ast2obj_expr()
4996 asdl_seq* elts; in obj2ast_expr() local
[all …]
Dsymtable.c1219 VISIT_SEQ(st, expr, e->v.Set.elts); in symtable_visit_expr()
1284 VISIT_SEQ(st, expr, e->v.List.elts); in symtable_visit_expr()
1287 VISIT_SEQ(st, expr, e->v.Tuple.elts); in symtable_visit_expr()
1352 !symtable_visit_params(st, arg->v.Tuple.elts, 0)) in symtable_visit_params_nested()
Dcompile.c2067 asdl_seq_LEN(s->v.Assert.test->v.Tuple.elts) > 0) { in compiler_assert()
2486 int n = asdl_seq_LEN(e->v.List.elts); in compiler_list()
2490 VISIT_SEQ(c, expr, e->v.List.elts); in compiler_list()
2500 int n = asdl_seq_LEN(e->v.Tuple.elts); in compiler_tuple()
2504 VISIT_SEQ(c, expr, e->v.Tuple.elts); in compiler_tuple()
3015 n = asdl_seq_LEN(e->v.Set.elts); in compiler_visit_expr()
3016 VISIT_SEQ(c, expr, e->v.Set.elts); in compiler_visit_expr()