Skip to main content

single_file_const_errors

Function single_file_const_errors 

Source
pub fn single_file_const_errors(items: &[CommonsItem]) -> Vec<CompileError>
Expand description

The single-file compile’s declaration diagnostics for constants, in declaration order: each constant’s name rules (name_error, against the file’s own embeds, assets, functions, types and earlier constants, and builtin_name_error). Placement needs no check here: a single file is always a commons. The case, static-ness, type and cycle rules are the checker’s, on every path.