checkThrow

Checks whether throw <exp> throws an Exception or an Error and raises an error if this violates nothrow.

Parameters

loc Loc

location of the throw

exp Expression

expression yielding the throwable

eSink ErrorSink

if !null then inside of a nothrow scope

func FuncDeclaration

function containing the throw

Return Value

Type: BE

BE.[err]throw depending on the type of exp

Meta