Class: IRRefusal

lib/compiler/ir/nodes.IRRefusal(reason, detail)

A construct the IR builder declined to represent.

Thrown rather than returned because a refusal aborts the whole template -- there is no partial IR. A half-built IR would describe a template that does not exist.

Constructor

new IRRefusal(reason, detail)

Parameters:
Name Type Description
reason string

A RefusalReason.

detail string

What in the template caused it.

Source: