Home
last modified time | relevance | path

Searched refs:slice_ty (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython2/Include/
DPython-ast.h14 typedef struct _slice *slice_ty; typedef
291 slice_ty slice;
500 expr_ty _Py_Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int
512 slice_ty _Py_Ellipsis(PyArena *arena);
514 slice_ty _Py_Slice(expr_ty lower, expr_ty upper, expr_ty step, PyArena *arena);
516 slice_ty _Py_ExtSlice(asdl_seq * dims, PyArena *arena);
518 slice_ty _Py_Index(expr_ty value, PyArena *arena);
/external/python/cpython3/Python/
Dast_unparse.c20 append_ast_slice(_PyUnicodeWriter *writer, slice_ty slice);
714 append_ast_simple_slice(_PyUnicodeWriter *writer, slice_ty slice) in append_ast_simple_slice()
734 append_ast_ext_slice(_PyUnicodeWriter *writer, slice_ty slice) in append_ast_ext_slice()
740 APPEND(slice, (slice_ty)asdl_seq_GET(slice->v.ExtSlice.dims, i)); in append_ast_ext_slice()
746 append_ast_slice(_PyUnicodeWriter *writer, slice_ty slice) in append_ast_slice()
Dast_opt.c353 slice_ty slice; in fold_subscr()
423 static int astfold_slice(slice_ty node_, PyArena *ctx_, int optimize_);
596 CALL(astfold_slice, slice_ty, node_->v.Subscript.slice); in astfold_expr()
621 astfold_slice(slice_ty node_, PyArena *ctx_, int optimize_) in astfold_slice()
630 CALL_SEQ(astfold_slice, slice_ty, node_->v.ExtSlice.dims); in astfold_slice()
Dcompile.c183 static int compiler_visit_slice(struct compiler *, slice_ty,
4635 check_ann_slice(struct compiler *c, slice_ty sl) in check_ann_slice()
4660 check_ann_subscr(struct compiler *c, slice_ty sl) in check_ann_subscr()
4675 slice_ty subsl = (slice_ty)asdl_seq_GET(sl->v.ExtSlice.dims, i); in check_ann_subscr()
4854 compiler_slice(struct compiler *c, slice_ty s, expr_context_ty ctx) in compiler_slice()
4883 compiler_visit_nested_slice(struct compiler *c, slice_ty s, in compiler_visit_nested_slice()
4902 compiler_visit_slice(struct compiler *c, slice_ty s, expr_context_ty ctx) in compiler_visit_slice()
4924 slice_ty sub = (slice_ty)asdl_seq_GET( in compiler_visit_slice()
DPython-ast.c1175 static int obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena);
2269 Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int lineno, int in Subscript()
2394 slice_ty
2397 slice_ty p; in Slice()
2398 p = (slice_ty)PyArena_Malloc(arena, sizeof(*p)); in Slice()
2408 slice_ty
2411 slice_ty p; in ExtSlice()
2412 p = (slice_ty)PyArena_Malloc(arena, sizeof(*p)); in ExtSlice()
2420 slice_ty
2423 slice_ty p; in Index()
[all …]
Dast.c41 validate_slice(slice_ty slice) in validate_slice()
2232 static slice_ty
2376 slice_ty slc = ast_for_slice(c, CHILD(n, 0)); in ast_for_trailer()
2388 slice_ty slc; in ast_for_trailer()
2412 slc = (slice_ty)asdl_seq_GET(slices, j); in ast_for_trailer()
Dsymtable.c194 static int symtable_visit_slice(struct symtable *st, slice_ty);
1684 symtable_visit_slice(struct symtable *st, slice_ty s) in symtable_visit_slice()
/external/python/cpython3/Include/
DPython-ast.h14 typedef struct _slice *slice_ty; typedef
338 slice_ty slice;
593 expr_ty _Py_Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int
608 slice_ty _Py_Slice(expr_ty lower, expr_ty upper, expr_ty step, PyArena *arena);
610 slice_ty _Py_ExtSlice(asdl_seq * dims, PyArena *arena);
612 slice_ty _Py_Index(expr_ty value, PyArena *arena);
/external/python/cpython2/Python/
DPython-ast.c974 static int obj2ast_slice(PyObject* obj, slice_ty* out, PyArena* arena);
1885 Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int lineno, int in Subscript()
1984 slice_ty
1987 slice_ty p; in Ellipsis()
1988 p = (slice_ty)PyArena_Malloc(arena, sizeof(*p)); in Ellipsis()
1995 slice_ty
1998 slice_ty p; in Slice()
1999 p = (slice_ty)PyArena_Malloc(arena, sizeof(*p)); in Slice()
2009 slice_ty
2012 slice_ty p; in ExtSlice()
[all …]
Dcompile.c166 static int compiler_visit_slice(struct compiler *, slice_ty,
3241 compiler_slice(struct compiler *c, slice_ty s, expr_context_ty ctx) in compiler_slice()
3270 compiler_simple_slice(struct compiler *c, slice_ty s, expr_context_ty ctx) in compiler_simple_slice()
3321 compiler_visit_nested_slice(struct compiler *c, slice_ty s, in compiler_visit_nested_slice()
3343 compiler_visit_slice(struct compiler *c, slice_ty s, expr_context_ty ctx) in compiler_visit_slice()
3373 slice_ty sub = (slice_ty)asdl_seq_GET( in compiler_visit_slice()
Dsymtable.c181 static int symtable_visit_slice(struct symtable *st, slice_ty);
1461 symtable_visit_slice(struct symtable *st, slice_ty s) in symtable_visit_slice()
Dast.c1516 static slice_ty
1677 slice_ty slc = ast_for_slice(c, CHILD(n, 0)); in ast_for_trailer()
1689 slice_ty slc; in ast_for_trailer()
1713 slc = (slice_ty)asdl_seq_GET(slices, j); in ast_for_trailer()