throwSemantic

Run semantic on throw <exp>.

public
bool
throwSemantic
(
const ref Loc loc
,,)

Parameters

loc Loc

location of the throw

exp Expression

value to be thrown

sc Scope*

enclosing scope

Return Value

Type: bool

true if the throw is valid, or false if an error was found

Meta