Scale back to only two traits
This commit is contained in:
parent
60f4d7bd8c
commit
689661c959
8 changed files with 2020 additions and 228 deletions
|
|
@ -549,7 +549,6 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
struct Block: AttrsOwner, ModuleItemOwner {
|
||||
LCurly,
|
||||
statements: [Stmt],
|
||||
statements_or_semi: [StmtOrSemi],
|
||||
Expr,
|
||||
RCurly,
|
||||
}
|
||||
|
|
@ -749,12 +748,10 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
|
||||
enum AttrInput { Literal, TokenTree }
|
||||
enum Stmt {
|
||||
ModuleItem,
|
||||
LetStmt,
|
||||
ExprStmt,
|
||||
// macro calls are parsed as expression statements */
|
||||
}
|
||||
enum StmtOrSemi {Stmt, Semi}
|
||||
|
||||
enum LeftDelimiter { LParen, LBrack, LCurly }
|
||||
enum RightDelimiter { RParen, RBrack, RCurly }
|
||||
|
|
@ -825,10 +822,5 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
RecordFieldDefList,
|
||||
TupleFieldDefList,
|
||||
}
|
||||
|
||||
enum AttrOrComment {
|
||||
Attr,
|
||||
Comment
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue