Skip to main content

classify_type_name

Function classify_type_name 

Source
pub fn classify_type_name(type_name: &str) -> u8
Expand description

Classify a scanned STEP keyword into the prepass class byte: a named-arm code for the exact keywords the serial pre-pass matches, plus the geometry-job / type-candidate FLAG bits from the same helpers it calls (has_geometry_by_name, IfcType::is_subtype_of). Byte-identical span collection and job discovery follow from using the identical predicates at scan time.

Deliberately name-only (cannot see the entity bytes) – the #1910 instance-level exception lives one layer up, in [classify_type_name_with_content], which is what scan_shard_classified actually calls. Kept as a separate function (rather than inlining) so every other named/flag arm here stays byte-identical to what it was before #1910 – the only new code path is the explicit OR-in above.