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