DoxigAlpha

hasCompileErrors

Function parameters

Parameters

#

The data stored at byte offset 0 when ZOIR is stored in a file.

Types

#
Header
The data stored at byte offset 0 when ZOIR is stored in a file.

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn hasCompileErrors(zoir: Zoir) bool {
    if (zoir.compile_errors.len > 0) {
        assert(zoir.nodes.len == 0);
        assert(zoir.extra.len == 0);
        assert(zoir.limbs.len == 0);
        return true;
    } else {
        assert(zoir.error_notes.len == 0);
        return false;
    }
}