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> {
295295 let name = field. method_name ( ) ;
296296 match ( node. name . as_str ( ) , name. as_str ( ) ) {
297297 ( "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
299299 | ( "Param" , "pat" ) | ( "MacroCall" , "token_tree" ) // handled manually to use `body`
300300 => continue ,
301301 _ => { }
@@ -487,6 +487,9 @@ fn main() -> anyhow::Result<()> {
487487
488488 grammar. enums . retain ( |x| x. name != "Adt" ) ;
489489
490+ // we flatten TypeAnchor into PathSegment in the extractor
491+ grammar. nodes . retain ( |x| x. name != "TypeAnchor" ) ;
492+
490493 let mut super_types: BTreeMap < String , BTreeSet < String > > = BTreeMap :: new ( ) ;
491494 for node in & grammar. enums {
492495 for variant in & node. variants {
You can’t perform that action at this time.
0 commit comments