Merge branch 'do-parse'

This commit is contained in:
Shunsuke Shibayama 2022-08-28 11:33:09 +09:00
commit f847029e16
3 changed files with 48 additions and 1 deletions

View file

@ -2269,6 +2269,15 @@ impl LambdaSignature {
bounds,
}
}
pub fn do_sig(do_symbol: &Token) -> Self {
let parens = Some((do_symbol.clone(), do_symbol.clone()));
Self::new(
Params::new(vec![], vec![], parens),
None,
TypeBoundSpecs::empty(),
)
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]