HomePhabricator

Separate "yield break" from "yield" parsing

Description

Separate "yield break" from "yield" parsing

"yield" and "yield break" are fundamentally different statements. Separate
their parsing paths and don't generate unused goto labels for "yield
break".

Parser's m_generators logic was updated to cope with zero labels case
that is now possible. A test case was added to cover this case.

Details

Provenance
janAuthored on
Sara GolemonCommitted on Nov 16 2012, 8:11 PM
Parents
rOSHDe298b1b9016c: Fix bug, increase coverage for binary arithmetic.
Branches
Unknown
Tags
Unknown
ChangeId
None