crashtest.hxsmith.features.iterators
User iterators: Iterator/Iterable classes, KeyValueIterator, anonymous generators, manual hasNext/next loops.
class Iterators(Feature)
name
name = 'iterators'
summary
summary = 'Iterator/Iterable/KeyValueIterator classes, anonymous generators, for-in and manual hasNext/next loops'
covers
covers = ('EFor', 'EWhile', 'OpArrow', 'EObjectDecl', 'FKArrow', 'decl:typedef', 'ECall')
order
order = 43
declare
def declare(g: Gen) -> None
types
def types(g: Gen, depth: int)
show
def show(g: Gen, ty: Ty, expr: str)
exprs
def exprs(g: Gen, ty: Ty)
stmts
def stmts(g: Gen)
ITERABLE
ITERABLE = Ty('IntIterable')
ITERATOR
ITERATOR = Ty('Iterator', (INT,))