Home
last modified time | relevance | path

Searched refs:RAISE_SYNTAX_ERROR_KNOWN_RANGE (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Parser/
H A Dpegen.h179 #define RAISE_SYNTAX_ERROR_KNOWN_RANGE(a, b, msg, ...) \ macro
H A Daction_helpers.c1284 return RAISE_SYNTAX_ERROR_KNOWN_RANGE( in _PyPegen_nonparen_genexp_in_call()
H A Dparser.c18989 _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()
19022 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "invalid syntax. Maybe you meant '==' or ':=' instead of '='?" ); 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()
19162 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "cannot assign to %s" , PyBytes_AS_STRING ( a -> bytes ) ); in invalid_kwarg_rule()
19195 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "invalid syntax. Maybe you meant '==' or ':=' instead of '='?" ); in invalid_kwarg_rule()
19224 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "expression cannot contain assignment, perhaps you meant \"==\"?" ); in invalid_kwarg_rule()
19398 _res = _PyPegen_check_legacy_stmt ( p , a ) ? RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "Missing parentheses in call to '%U'. Did you mean %U(...)?" , a -> v . Name . id , a -> v . Name . id ) : NULL; in invalid_legacy_expression_rule()
19449 _res = _PyPegen_check_legacy_stmt ( p , a ) ? NULL : p -> tokens [p -> mark - 1] -> level == 0 ? NULL : RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "invalid syntax. Perhaps you forgot a comma?" ); in invalid_expression_rule()
19481 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( a , b , "expected 'else' after 'if' expression" ); in invalid_expression_rule()
19570 _res = RAISE_SYNTAX_ERROR_KNOWN_RANGE ( in invalid_named_expression_rule()
[all...]

Completed in 33 milliseconds