/third_party/python/Include/internal/ |
H A 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 valu [all...] |
/third_party/python/Python/ |
H A D | ast_opt.c | 10 make_const(expr_ty node, PyObject *val, PyArena *arena) in make_const() 38 expr_ty e = (expr_ty)asdl_seq_GET(elts, i); in has_starred() 57 fold_unaryop(expr_ty node, PyArena *arena, _PyASTOptimizeState *state) in fold_unaryop() 59 expr_ty arg = node->v.UnaryOp.operand; in fold_unaryop() 243 static expr_ty 349 static expr_ty 350 parse_format(PyObject *fmt, Py_ssize_t *ppos, expr_ty arg, PyArena *arena) in parse_format() 368 expr_ty format_spec = NULL; in parse_format() 393 optimize_format(expr_ty nod [all...] |
H A D | ast_unparse.c | 2 #include "pycore_ast.h" // expr_ty 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 [all...] |
H A D | Python-ast.c | 364 GENERATE_ASDL_SEQ_CONSTRUCTOR(expr, expr_ty) 1864 static int obj2ast_expr(struct ast_state *state, PyObject* obj, expr_ty* out, 1924 _PyAST_Expression(expr_ty body, PyArena *arena) in _PyAST_Expression() 1941 _PyAST_FunctionType(asdl_expr_seq * argtypes, expr_ty returns, PyArena *arena) in _PyAST_FunctionType() 1960 asdl_expr_seq * decorator_list, expr_ty returns, string in _PyAST_FunctionDef() 1994 body, asdl_expr_seq * decorator_list, expr_ty returns, in _PyAST_AsyncFunctionDef() 2055 _PyAST_Return(expr_ty value, int lineno, int col_offset, int end_lineno, int in _PyAST_Return() 2089 _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string type_comment, int in _PyAST_Assign() 2114 _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty valu [all...] |
H A D | compile.c | 407 static int compiler_visit_expr(struct compiler *, expr_ty); 410 static int compiler_subscript(struct compiler *, expr_ty); 411 static int compiler_slice(struct compiler *, expr_ty); 434 expr_ty elt, expr_ty val, int type); 440 expr_ty elt, expr_ty val, int type); 2323 VISIT(c, expr, (expr_ty)asdl_seq_GET(decos, i)); in compiler_decorators() 2339 SET_LOC(c, (expr_ty)asdl_seq_GET(decos, i)); in compiler_apply_decorators() 2363 expr_ty default in compiler_visit_kwonlydefaults() [all...] |
H A D | ast.c | 22 static int validate_expr(struct validator *, expr_ty, expr_context_ty); 209 validate_expr(struct validator *state, expr_ty exp, expr_context_ty ctx) in validate_expr() 403 ensure_literal_number(expr_ty exp, bool allow_real, bool allow_imaginary) in ensure_literal_number() 413 ensure_literal_negative(expr_ty exp, bool allow_real, bool allow_imaginary) in ensure_literal_negative() 421 expr_ty operand = exp->v.UnaryOp.operand; in ensure_literal_negative() 430 ensure_literal_complex(expr_ty exp) in ensure_literal_complex() 433 expr_ty left = exp->v.BinOp.left; in ensure_literal_complex() 434 expr_ty right = exp->v.BinOp.right; in ensure_literal_complex() 470 validate_pattern_match_value(struct validator *state, expr_ty exp) in validate_pattern_match_value() 574 expr_ty ke in validate_pattern() [all...] |
H A 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); 1253 expr_ty e_nam in symtable_visit_stmt() [all...] |
H A D | traceback.c | 604 extract_anchors_from_expr(const char *segment_str, expr_ty expr, Py_ssize_t *left_anchor, Py_ssize_t *right_anchor, in extract_anchors_from_expr() 609 expr_ty left = expr->v.BinOp.left; in extract_anchors_from_expr() 610 expr_ty right = expr->v.BinOp.right; in extract_anchors_from_expr()
|
/third_party/python/Parser/ |
H A D | pegen.h | 85 expr_ty expr; 89 expr_ty key; 90 expr_ty value; 94 expr_ty key; 100 expr_ty value; 130 int _PyPegen_lookahead_with_name(int, expr_ty (func)(Parser *), Parser *); 132 int _PyPegen_lookahead_with_string(int , expr_ty (func)(Parser *, const char*), Parser *, const char*); 138 expr_ty _PyPegen_expect_soft_keyword(Parser *p, const char *keyword); 139 expr_ty _PyPegen_soft_keyword_token(Parser *p); 142 expr_ty _PyPegen_name_toke [all...] |
H A D | action_helpers.c | 133 expr_ty 134 _PyPegen_join_names_with_dot(Parser *p, expr_ty first_name, expr_ty second_name) in _PyPegen_join_names_with_dot() 236 expr_ty e = asdl_seq_GET(seq, i); in _PyPegen_map_names_to_ids() 244 _PyPegen_cmpop_expr_pair(Parser *p, cmpop_ty cmpop, expr_ty expr) in _PyPegen_cmpop_expr_pair() 304 expr_ty e = asdl_seq_GET(seq, i); in _set_seq_context() 310 static expr_ty 311 _set_name_context(Parser *p, expr_ty e, expr_context_ty ctx) in _set_name_context() 316 static expr_ty 317 _set_tuple_context(Parser *p, expr_ty [all...] |
H A D | string_parser.h | 11 /* Incrementally build an array of expr_ty, so be used in an 13 expr_ty's, and then after that start dynamically allocating, 15 f'{0}a{1}' contains 3 expr_ty's: 2 FormattedValue's, and one 16 Constant for the literal 'a'. So you add expr_ty's about twice as 21 expr_ty *p; /* Pointer to the memory we're actually 24 expr_ty data[EXPRLIST_N_CACHED]; 29 generates an expr_ty. */ 43 expr_ty _PyPegen_FstringParser_Finish(Parser *, FstringParser *, Token *, Token *);
|
H A D | parser.c | 563 static expr_ty fstring_rule(Parser *p); 571 static expr_ty annotated_rhs_rule(Parser *p); 588 static expr_ty dotted_name_rule(Parser *p); 607 static expr_ty annotation_rule(Parser *p); 608 static expr_ty star_annotation_rule(Parser *p); 609 static expr_ty default_rule(Parser *p); 622 static expr_ty subject_expr_rule(Parser *p); 624 static expr_ty guard_rule(Parser *p); 631 static expr_ty literal_expr_rule(Parser *p); 632 static expr_ty complex_number_rul [all...] |
H A D | string_parser.c | 346 /* Compile this expression in to an expr_ty. Add parens around the 348 static expr_ty 352 expr_ty expr = NULL; in fstring_compile_expr() 356 expr_ty result = NULL; in fstring_compile_expr() 538 static expr_ty 559 PyObject **expr_text, expr_ty *expression, Token *first_token, in fstring_find_expr() 566 expr_ty simple_expression; in fstring_find_expr() 567 expr_ty format_spec = NULL; /* Optional format specifier. */ in fstring_find_expr() 876 PyObject **expr_text, expr_ty *expression, in fstring_find_literal_and_expr() 948 ExprList_Append(ExprList *l, expr_ty ex [all...] |
H A D | pegen.c | 328 _PyPegen_lookahead_with_name(int positive, expr_ty (func)(Parser *), Parser *p) in _PyPegen_lookahead_with_name() 337 _PyPegen_lookahead_with_string(int positive, expr_ty (func)(Parser *, const char*), Parser *p, const char* arg) in _PyPegen_lookahead_with_string() 415 expr_ty 509 static expr_ty 529 expr_ty 542 expr_ty _PyPegen_soft_keyword_token(Parser *p) { in _PyPegen_soft_keyword_token() 631 expr_ty
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
H A D | resolver.cc | 1898 auto* expr_ty = expr->Type(); 1899 if (!expr_ty) { 1908 ty = expr_ty->UnwrapRef(); 1911 "cannot logical negate expression of type '" + TypeNameOf(expr_ty), 1919 ty = expr_ty->UnwrapRef(); 1922 TypeNameOf(expr_ty), 1930 ty = expr_ty->UnwrapRef(); 1933 AddError("cannot negate expression of type '" + TypeNameOf(expr_ty), 1940 if (auto* ref = expr_ty->As<sem::Reference>()) { 1967 if (auto* ptr = expr_ty [all...] |