pub fn token(externals: &[External], name: &str) -> Option<String>
The token for the gate called name, whether that is a declared check (looked up by id, then by a pre-commit short name) or a built-in.
name