Searched refs:_PyPegen_singleton_seq (Results 1 – 4 of 4) sorted by relevance
/aosp_15_r20/external/python/cpython3/Grammar/ |
D | python.gram | 99 statement[asdl_stmt_seq*]: a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } | a[asd… 102 | a=compound_stmt NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } 104 | NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, CHECK(stmt_ty, _PyAST_Pass(EXTRA))) } 108 …| a=simple_stmt !';' NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } # Not needed, there … 212 …| '*' { (asdl_alias_seq*)_PyPegen_singleton_seq(p, CHECK(alias_ty, _PyPegen_alias_for_star(p, EXTR… 359 _PyAST_If(a, b, CHECK(asdl_stmt_seq*, _PyPegen_singleton_seq(p, c)), EXTRA) } 364 _PyAST_If(a, b, CHECK(asdl_stmt_seq*, _PyPegen_singleton_seq(p, c)), EXTRA) } 634 …| a=expression ',' { _PyAST_Tuple(CHECK(asdl_expr_seq*, _PyPegen_singleton_seq(p, a)), Load, EXTRA… 651 …| a=star_expression ',' { _PyAST_Tuple(CHECK(asdl_expr_seq*, _PyPegen_singleton_seq(p, a)), Load, … 785 … b=genexp { _PyAST_Call(a, CHECK(asdl_expr_seq*, (asdl_expr_seq*)_PyPegen_singleton_seq(p, b)), NU… [all …]
|
/aosp_15_r20/external/python/cpython3/Parser/ |
D | action_helpers.c | 31 _PyPegen_singleton_seq(Parser *p, void *a) in _PyPegen_singleton_seq() function 48 return _PyPegen_singleton_seq(p, a); in _PyPegen_seq_insert_in_front() 69 return _PyPegen_singleton_seq(p, a); in _PyPegen_seq_append_to_end()
|
D | pegen.h | 286 asdl_seq *_PyPegen_singleton_seq(Parser *, void *);
|
D | parser.c | 1351 _res = ( asdl_stmt_seq* ) _PyPegen_singleton_seq ( p , a ); in statement_rule() 1431 _res = ( asdl_stmt_seq* ) _PyPegen_singleton_seq ( p , a ); in statement_newline_rule() 1483 …_res = ( asdl_stmt_seq* ) _PyPegen_singleton_seq ( p , CHECK ( stmt_ty , _PyAST_Pass ( EXTRA ) ) ); in statement_newline_rule() 1556 _res = ( asdl_stmt_seq* ) _PyPegen_singleton_seq ( p , a ); in simple_stmts_rule() 3648 …_res = ( asdl_alias_seq* ) _PyPegen_singleton_seq ( p , CHECK ( alias_ty , _PyPegen_alias_for_star… in import_from_targets_rule() 5868 … _res = _PyAST_If ( a , b , CHECK ( asdl_stmt_seq* , _PyPegen_singleton_seq ( p , c ) ) , EXTRA ); in if_stmt_rule() 6009 … _res = _PyAST_If ( a , b , CHECK ( asdl_stmt_seq* , _PyPegen_singleton_seq ( p , c ) ) , EXTRA ); in elif_stmt_rule() 10524 …_res = _PyAST_Tuple ( CHECK ( asdl_expr_seq* , _PyPegen_singleton_seq ( p , a ) ) , Load , EXTRA ); in expressions_rule() 10915 …_res = _PyAST_Tuple ( CHECK ( asdl_expr_seq* , _PyPegen_singleton_seq ( p , a ) ) , Load , EXTRA ); in star_expressions_rule() 13823 … = _PyAST_Call ( a , CHECK ( asdl_expr_seq* , ( asdl_expr_seq* ) _PyPegen_singleton_seq ( p , b ) … in primary_raw() [all …]
|