Skip to main content

crashtest.hxsmith.features.casts

Dynamic, casts, type checks, untyped, Null<T> and ??.

class Casts(Feature)​

name​

name = 'casts'

summary​

summary = 'Dynamic values and arithmetic, cast, (e : T), is/isOfType, untyped, Null<T>, ??'

covers​

covers = ('ECast', 'EIs', 'ECheckType', 'EUntyped', 'EBinop', 'EIf', 'OpNullCoal', 'OpAssignOp', 'OpAdd', 'OpSub', 'OpMult', 'OpEq', 'OpNotEq', 'OpLt', 'std:Std.isOfType', 'std:Dynamic', 'std:Null')

order​

order = 47

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)