use
This commit is contained in:
parent
4b3a09c4d5
commit
0dd7161829
2 changed files with 8044 additions and 2 deletions
10
src/ast.rs
10
src/ast.rs
|
|
@ -70,7 +70,13 @@ pub enum ASTNodeKind {
|
|||
Enum(Enum),
|
||||
Impl(Impl),
|
||||
Trait(Trait),
|
||||
Use(String),
|
||||
Use(Use),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Use {
|
||||
pub path: String,
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
// ? implies OPTIONAL here
|
||||
|
|
@ -305,7 +311,7 @@ pub enum TypedASTNodeKind {
|
|||
Enum(TypedEnum),
|
||||
Impl(TypedImpl),
|
||||
Trait(TypedTrait),
|
||||
Use(String),
|
||||
Use(Use),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue