Skip to main content

classify_open_key

Function classify_open_key 

Source
pub fn classify_open_key<'a>(
    open: &'a Handler,
    key: &'a Expr,
    is_const: impl Fn(&str) -> bool,
) -> WsOpenKey<'a>
Expand description

Classify key, the key of open’s connection transfer. is_const answers whether a name is a constant visible in the context (crate::consts::visible_consts). A parameter shadows a constant of the same name, and a name any top-level let of the body binds is a local, not the constant (or parameter) it may shadow; so is one a par block binds, since its bindings land in the enclosing scope.