Searched refs:PyPegen_last_item (Results 1 - 3 of 3) sorted by relevance
/third_party/python/Parser/ |
H A D | pegen.h | 239 #define PyPegen_last_item(seq, type) ((type)_PyPegen_seq_last_item((asdl_seq*)seq)) macro
|
H A D | action_helpers.c | 1153 return PyPegen_last_item(comprehension->ifs, expr_ty); in _PyPegen_get_last_comprehension_item() 1282 comprehension_ty last_comprehension = PyPegen_last_item(comprehensions, comprehension_ty); in _PyPegen_nonparen_genexp_in_call()
|
H A D | parser.c | 18989 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , _PyPegen_get_last_comprehension_item ( PyPegen_last_item ( b , comprehension_ty ) ) , "Generator expression must be parenthesized" ); in invalid_arguments_rule() 19082 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , _PyPegen_get_last_comprehension_item ( PyPegen_last_item ( b , comprehension_ty ) ) , "Generator expression must be parenthesized" ); in invalid_arguments_rule() 20087 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , PyPegen_last_item ( b , expr_ty ) , "did you forget parentheses around the comprehension target?" ); in invalid_comprehension_rule() 22655 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( PyPegen_first_item ( a , pattern_ty ) , PyPegen_last_item ( a , pattern_ty ) , "positional patterns follow keyword patterns" ); in invalid_class_pattern_rule() [all...] |
Completed in 51 milliseconds