pub fn param_direction(param: &ParamInfo) -> ParamDirection
Map a param to its direction based on prop_flags.