Expand description
ScanClass: the one table of STEP keywords a scan loop reacts to.
Every pre-pass used to spell its own keyword chain: the native scan, the
browser’s serial pre-pass, PrepassSpans::stash
and the sharded scan’s classify_type_name each compared the same
keywords in their own order. A keyword added to one and not the others was
a silent drift between pipelines (#858/#913 class). This is the table; each
scan matches on the class instead of re-comparing text.
ScanClass::classify is a case-insensitive match on the keyword’s length
followed by at most three same-length comparisons, with no allocation. It
returns exactly what the chain keyword_eq(.., A) || keyword_eq(.., B) ..
returned for the same string (scan_class_matches_the_keyword_chain pins
that over every schema type name and the spelling variants).
Enums§
- Scan
Class - What a scan loop does with a record, decided from its keyword alone.