Fix match codegen

This commit is contained in:
Shunsuke Shibayama 2022-11-16 18:59:38 +09:00
parent d63b018371
commit 771be313a9
7 changed files with 173 additions and 80 deletions

View file

@ -2241,6 +2241,8 @@ impl From<&Identifier> for Field {
}
impl Identifier {
pub const UBAR: &Self = &Self::new(None, VarName::from_static("_"));
pub const fn new(dot: Option<Token>, name: VarName) -> Self {
Self { dot, name }
}