Use: add alias use foo as bar form

This commit is contained in:
2025-12-20 06:09:31 -05:00
parent f551e3aef3
commit a836de32c7
6 changed files with 21 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ pub enum Expr<A: Annotation = Span> {
Lit(Literal),
/// use Use
Use(Use),
/// `(let | const | static) Pat::NoTopAlt (= expr (else expr)?)?` |
/// `let Pat::NoTopAlt (= expr (else expr)?)?` |
/// `(fn | mod | impl) Pat::Fn Expr`
Bind(Box<Bind<A>>),
/// Expr { (Ident (: Expr)?),* }
@@ -169,6 +169,8 @@ pub enum Use {
Glob,
/// Identifier
Name(String),
/// Identifier as Identifier
Alias(String, String),
/// Identifier :: Use
Path(String, Box<Use>),
/// { Use, * }