MCPcopy Create free account
hub / github.com/Glyphack/enderpy / parse_assignment_value

Method parse_assignment_value

parser/src/parser/parser.rs:1250–1255  ·  view source on GitHub ↗

The value is either expression list or yield expression https://docs.python.org/3/reference/simple_stmts.html#assignment-statements

(&mut self)

Source from the content-addressed store, hash-verified

1248 // The value is either expression list or yield expression
1249 // https://docs.python.org/3/reference/simple_stmts.html#assignment-statements
1250 fn parse_assignment_value(&mut self) -> Result<Expression, ParsingError> {
1251 if self.cur_kind() == Kind::Yield {
1252 return self.parse_yield_expression();
1253 }
1254 self.parse_expression_list()
1255 }
1256
1257 fn parse_aug_assign_op(&mut self) -> Option<AugAssignOp> {
1258 let op = match self.cur_kind() {

Calls 3

cur_kindMethod · 0.80
parse_expression_listMethod · 0.80

Tested by

no test coverage detected