Function hasCompileErrors [src]

Prototype

pub fn hasCompileErrors(code: Zir) bool

Parameters

code: Zir

Source

pub fn hasCompileErrors(code: Zir) bool { if (code.extra[@intFromEnum(ExtraIndex.compile_errors)] != 0) { return true; } else { assert(code.instructions.len != 0); // i.e. lowering did not fail return false; } }