File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ fn get_fields(node: &AstNodeSrc) -> Vec<FieldInfo> {
295
295
let name = field. method_name ( ) ;
296
296
match ( node. name . as_str ( ) , name. as_str ( ) ) {
297
297
( "ArrayExpr" , "expr" ) // The ArrayExpr type also has an 'exprs' field
298
- | ( "PathSegment" , "ty" | "path_type" ) // these are broken, handling them manually
298
+ | ( "PathSegment" , "type_anchor" ) // we flatten TypeAnchor into PathSegment in the extractor
299
299
| ( "Param" , "pat" ) | ( "MacroCall" , "token_tree" ) // handled manually to use `body`
300
300
=> continue ,
301
301
_ => { }
@@ -487,6 +487,9 @@ fn main() -> anyhow::Result<()> {
487
487
488
488
grammar. enums . retain ( |x| x. name != "Adt" ) ;
489
489
490
+ // we flatten TypeAnchor into PathSegment in the extractor
491
+ grammar. nodes . retain ( |x| x. name != "TypeAnchor" ) ;
492
+
490
493
let mut super_types: BTreeMap < String , BTreeSet < String > > = BTreeMap :: new ( ) ;
491
494
for node in & grammar. enums {
492
495
for variant in & node. variants {
You can’t perform that action at this time.
0 commit comments