/third_party/python/Include/internal/ |
D | pycore_ast.h | 19 typedef struct _expr *expr_ty; typedef 71 expr_ty typed_elements[1]; 166 expr_ty body; 171 expr_ty returns; 193 expr_ty returns; 202 expr_ty returns; 215 expr_ty value; 224 expr_ty value; 229 expr_ty target; 231 expr_ty value; [all …]
|
/third_party/python/Python/ |
D | ast_opt.c | 9 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const() 42 fold_unaryop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_unaryop() 44 expr_ty arg = node->v.UnaryOp.operand; in fold_unaryop() 228 fold_binop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_binop() 230 expr_ty lhs, rhs; in fold_binop() 292 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 304 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in make_const_tuple() 313 fold_tuple(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_tuple() 325 fold_subscr(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_subscr() 328 expr_ty arg, idx; in fold_subscr() [all …]
|
D | ast_unparse.c | 20 expr_as_unicode(expr_ty e, int level); 22 append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level); 24 append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec); 26 append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e); 28 append_ast_slice(_PyUnicodeWriter *writer, expr_ty e); 122 append_ast_boolop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_boolop() 136 APPEND_EXPR((expr_ty)asdl_seq_GET(values, i), pr + 1); in append_ast_boolop() 144 append_ast_binop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_binop() 179 append_ast_unaryop(_PyUnicodeWriter *writer, expr_ty e, int level) in append_ast_unaryop() 238 APPEND_EXPR((expr_ty)asdl_seq_GET(args->defaults, di), PR_TEST); in append_ast_args() [all …]
|
D | Python-ast.c | 362 GENERATE_ASDL_SEQ_CONSTRUCTOR(expr, expr_ty) 1849 static int obj2ast_expr(struct ast_state *state, PyObject* obj, expr_ty* out, 1909 _PyAST_Expression(expr_ty body, PyArena *arena) in _PyAST_Expression() 1926 _PyAST_FunctionType(asdl_expr_seq * argtypes, expr_ty returns, PyArena *arena) in _PyAST_FunctionType() 1945 asdl_expr_seq * decorator_list, expr_ty returns, string in _PyAST_FunctionDef() 1979 body, asdl_expr_seq * decorator_list, expr_ty returns, in _PyAST_AsyncFunctionDef() 2040 _PyAST_Return(expr_ty value, int lineno, int col_offset, int end_lineno, int in _PyAST_Return() 2074 _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string type_comment, int in _PyAST_Assign() 2099 _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty value, int lineno, int in _PyAST_AugAssign() 2133 _PyAST_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int simple, in _PyAST_AnnAssign() [all …]
|
D | compile.c | 274 static int compiler_visit_expr(struct compiler *, expr_ty); 277 static int compiler_subscript(struct compiler *, expr_ty); 278 static int compiler_slice(struct compiler *, expr_ty); 297 expr_ty elt, expr_ty val, int type); 303 expr_ty elt, expr_ty val, int type); 2078 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 2096 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults() 2141 compiler_visit_annexpr(struct compiler *c, expr_ty annotation) in compiler_visit_annexpr() 2149 expr_ty annotation, Py_ssize_t *annotations_len) in compiler_visit_argannotation() 2191 expr_ty returns) in compiler_visit_annotations() [all …]
|
D | ast.c | 22 static int validate_expr(struct validator *, expr_ty, expr_context_ty); 184 validate_expr(struct validator *state, expr_ty exp, expr_context_ty ctx) in validate_expr() 376 ensure_literal_number(expr_ty exp, bool allow_real, bool allow_imaginary) in ensure_literal_number() 386 ensure_literal_negative(expr_ty exp, bool allow_real, bool allow_imaginary) in ensure_literal_negative() 394 expr_ty operand = exp->v.UnaryOp.operand; in ensure_literal_negative() 403 ensure_literal_complex(expr_ty exp) in ensure_literal_complex() 406 expr_ty left = exp->v.BinOp.left; in ensure_literal_complex() 407 expr_ty right = exp->v.BinOp.right; in ensure_literal_complex() 443 validate_pattern_match_value(struct validator *state, expr_ty exp) in validate_pattern_match_value() 543 expr_ty key = asdl_seq_GET(keys, i); in validate_pattern() [all …]
|
D | symtable.c | 211 static int symtable_visit_expr(struct symtable *st, expr_ty s); 212 static int symtable_visit_genexp(struct symtable *st, expr_ty s); 213 static int symtable_visit_listcomp(struct symtable *st, expr_ty s); 214 static int symtable_visit_setcomp(struct symtable *st, expr_ty s); 215 static int symtable_visit_dictcomp(struct symtable *st, expr_ty s); 222 static int symtable_visit_annotation(struct symtable *st, expr_ty annotation); 225 static int symtable_visit_annotations(struct symtable *st, stmt_ty, arguments_ty, expr_ty); 229 static int symtable_raise_if_annotation_block(struct symtable *st, const char *, expr_ty); 230 static int symtable_raise_if_comprehension_block(struct symtable *st, expr_ty); 1264 expr_ty e_name = s->v.AnnAssign.target; in symtable_visit_stmt() [all …]
|
/third_party/python/Parser/ |
D | pegen.h | 83 expr_ty expr; 87 expr_ty key; 88 expr_ty value; 92 expr_ty key; 98 expr_ty value; 128 int _PyPegen_lookahead_with_name(int, expr_ty (func)(Parser *), Parser *); 130 int _PyPegen_lookahead_with_string(int , expr_ty (func)(Parser *, const char*), Parser *, const cha… 135 expr_ty _PyPegen_expect_soft_keyword(Parser *p, const char *keyword); 136 expr_ty _PyPegen_soft_keyword_token(Parser *p); 139 expr_ty _PyPegen_name_token(Parser *p); [all …]
|
D | string_parser.c | 333 static expr_ty 337 expr_ty expr = NULL; in fstring_compile_expr() 341 expr_ty result = NULL; in fstring_compile_expr() 506 static expr_ty 527 PyObject **expr_text, expr_ty *expression, Token *first_token, in fstring_find_expr() 534 expr_ty simple_expression; in fstring_find_expr() 535 expr_ty format_spec = NULL; /* Optional format specifier. */ in fstring_find_expr() 842 PyObject **expr_text, expr_ty *expression, in fstring_find_literal_and_expr() 914 ExprList_Append(ExprList *l, expr_ty exp) in ExprList_Append() 926 l->p = PyMem_Malloc(sizeof(expr_ty) * new_size); in ExprList_Append() [all …]
|
D | pegen.c | 81 _PyPegen_check_legacy_stmt(Parser *p, expr_ty name) { in _PyPegen_check_legacy_stmt() 178 _PyPegen_get_expr_name(expr_ty e) in _PyPegen_get_expr_name() 861 _PyPegen_lookahead_with_name(int positive, expr_ty (func)(Parser *), Parser *p) in _PyPegen_lookahead_with_name() 870 _PyPegen_lookahead_with_string(int positive, expr_ty (func)(Parser *, const char*), Parser *p, cons… in _PyPegen_lookahead_with_string() 935 expr_ty 973 static expr_ty 994 expr_ty 1008 expr_ty _PyPegen_soft_keyword_token(Parser *p) { in _PyPegen_soft_keyword_token() 1097 expr_ty 1587 expr_ty [all …]
|
D | string_parser.h | 21 expr_ty *p; /* Pointer to the memory we're actually 24 expr_ty data[EXPRLIST_N_CACHED]; 43 expr_ty _PyPegen_FstringParser_Finish(Parser *, FstringParser *, Token *, Token *);
|
D | parser.c | 508 static expr_ty fstring_rule(Parser *p); 531 static expr_ty dotted_name_rule(Parser *p); 543 static expr_ty subject_expr_rule(Parser *p); 545 static expr_ty guard_rule(Parser *p); 552 static expr_ty literal_expr_rule(Parser *p); 553 static expr_ty complex_number_rule(Parser *p); 554 static expr_ty signed_number_rule(Parser *p); 555 static expr_ty signed_real_number_rule(Parser *p); 556 static expr_ty real_number_rule(Parser *p); 557 static expr_ty imaginary_number_rule(Parser *p); [all …]
|
/third_party/python/Grammar/ |
D | python.gram | 35 fstring[expr_ty]: star_expressions 98 _PyAST_AnnAssign(CHECK(expr_ty, _PyPegen_set_expr_context(p, a, Store)), b, c, 1, EXTRA) 154 (b) ? ((expr_ty) b)->v.Name.id : NULL, 160 (b) ? ((expr_ty) b)->v.Name.id : NULL, 162 dotted_name[expr_ty]: 216 _PyAST_ExceptHandler(e, (t) ? ((expr_ty) t)->v.Name.id : NULL, b, EXTRA) } 227 subject_expr[expr_ty]: 235 guard[expr_ty]: 'if' guard=named_expression { guard } 271 literal_expr[expr_ty]: 279 complex_number[expr_ty]: [all …]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver.cc | 1898 auto* expr_ty = expr->Type(); in UnaryOp() local 1899 if (!expr_ty) { in UnaryOp() 1908 ty = expr_ty->UnwrapRef(); in UnaryOp() 1911 "cannot logical negate expression of type '" + TypeNameOf(expr_ty), in UnaryOp() 1919 ty = expr_ty->UnwrapRef(); in UnaryOp() 1922 TypeNameOf(expr_ty), in UnaryOp() 1930 ty = expr_ty->UnwrapRef(); in UnaryOp() 1933 AddError("cannot negate expression of type '" + TypeNameOf(expr_ty), in UnaryOp() 1940 if (auto* ref = expr_ty->As<sem::Reference>()) { in UnaryOp() 1967 if (auto* ptr = expr_ty->As<sem::Pointer>()) { in UnaryOp() [all …]
|