Home
last modified time | relevance | path

Searched refs:pattern_ty (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Include/internal/
Dpycore_ast.h50 typedef struct _pattern *pattern_ty; typedef
137 pattern_ty typed_elements[1];
557 pattern_ty pattern;
599 pattern_ty pattern;
809 match_case_ty _PyAST_match_case(pattern_ty pattern, expr_ty guard,
811 pattern_ty _PyAST_MatchValue(expr_ty value, int lineno, int col_offset, int
813 pattern_ty _PyAST_MatchSingleton(constant value, int lineno, int col_offset,
816 pattern_ty _PyAST_MatchSequence(asdl_pattern_seq * patterns, int lineno, int
819 pattern_ty _PyAST_MatchMapping(asdl_expr_seq * keys, asdl_pattern_seq *
823 pattern_ty _PyAST_MatchClass(expr_ty cls, asdl_pattern_seq * patterns,
[all …]
/third_party/python/Grammar/
Dpython.gram237 patterns[pattern_ty]:
241 pattern[pattern_ty]:
244 as_pattern[pattern_ty]:
248 or_pattern[pattern_ty]:
251 closed_pattern[pattern_ty]:
262 literal_pattern[pattern_ty]:
299 capture_pattern[pattern_ty]:
306 wildcard_pattern[pattern_ty]:
309 value_pattern[pattern_ty]:
318 group_pattern[pattern_ty]:
[all …]
/third_party/python/Parser/
Dpegen.h93 pattern_ty pattern;
272 KeyPatternPair *_PyPegen_key_pattern_pair(Parser *, expr_ty, pattern_ty);
Dparser.c546 static pattern_ty patterns_rule(Parser *p);
547 static pattern_ty pattern_rule(Parser *p);
548 static pattern_ty as_pattern_rule(Parser *p);
549 static pattern_ty or_pattern_rule(Parser *p);
550 static pattern_ty closed_pattern_rule(Parser *p);
551 static pattern_ty literal_pattern_rule(Parser *p);
558 static pattern_ty capture_pattern_rule(Parser *p);
560 static pattern_ty wildcard_pattern_rule(Parser *p);
561 static pattern_ty value_pattern_rule(Parser *p);
564 static pattern_ty group_pattern_rule(Parser *p);
[all …]
Dpegen.c1911 _PyPegen_key_pattern_pair(Parser *p, expr_ty key, pattern_ty pattern) in _PyPegen_key_pattern_pair()
/third_party/python/Python/
DPython-ast.c371 GENERATE_ASDL_SEQ_CONSTRUCTOR(pattern, pattern_ty)
1877 static int obj2ast_pattern(struct ast_state *state, PyObject* obj, pattern_ty*
3372 _PyAST_match_case(pattern_ty pattern, expr_ty guard, asdl_stmt_seq * body, in _PyAST_match_case()
3390 pattern_ty
3394 pattern_ty p; in _PyAST_MatchValue()
3400 p = (pattern_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_MatchValue()
3412 pattern_ty
3416 pattern_ty p; in _PyAST_MatchSingleton()
3422 p = (pattern_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_MatchSingleton()
3434 pattern_ty
[all …]
Dcompile.c305 static int compiler_pattern(struct compiler *, pattern_ty, pattern_context *);
307 static int compiler_pattern_subpattern(struct compiler *, pattern_ty,
5763 pattern_ty elt = asdl_seq_GET(elts, i); in pattern_unpack_helper()
5796 pattern_ty pattern = asdl_seq_GET(patterns, i); in pattern_helper_sequence_unpack()
5813 pattern_ty pattern = asdl_seq_GET(patterns, i); in pattern_helper_sequence_subscr()
5843 compiler_pattern_subpattern(struct compiler *c, pattern_ty p, pattern_context *pc) in compiler_pattern_subpattern()
5853 compiler_pattern_as(struct compiler *c, pattern_ty p, pattern_context *pc) in compiler_pattern_as()
5879 compiler_pattern_star(struct compiler *c, pattern_ty p, pattern_context *pc) in compiler_pattern_star()
5894 SET_LOC(c, ((pattern_ty) asdl_seq_GET(patterns, i))); in validate_kwd_attrs()
5901 SET_LOC(c, ((pattern_ty) asdl_seq_GET(patterns, j))); in validate_kwd_attrs()
[all …]
Dast.c23 static int validate_pattern(struct validator *, pattern_ty, int);
506 validate_pattern(struct validator *state, pattern_ty p, int star_ok) in validate_pattern()
909 pattern_ty pattern = asdl_seq_GET(patterns, i); in validate_patterns()
Dast_opt.c414 static int astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
796 astfold_pattern(pattern_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_pattern()
828 CALL(astfold_pattern, pattern_ty, node_->v.MatchAs.pattern); in astfold_pattern()
Dsymtable.c228 static int symtable_visit_pattern(struct symtable *st, pattern_ty s);
1743 symtable_visit_pattern(struct symtable *st, pattern_ty p) in symtable_visit_pattern()