/external/python/cpython2/Include/ |
D | Python-ast.h | 14 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/ |
D | ast_unparse.c | 20 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()
|
D | ast_opt.c | 353 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()
|
D | compile.c | 183 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()
|
D | Python-ast.c | 1175 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 …]
|
D | ast.c | 41 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()
|
D | symtable.c | 194 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/ |
D | Python-ast.h | 14 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/ |
D | Python-ast.c | 974 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 …]
|
D | compile.c | 166 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()
|
D | symtable.c | 181 static int symtable_visit_slice(struct symtable *st, slice_ty); 1461 symtable_visit_slice(struct symtable *st, slice_ty s) in symtable_visit_slice()
|
D | ast.c | 1516 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()
|