Rust: undo rename of Path::segment to Path::part

This commit is contained in:
Paolo Tranquilli
2025-03-20 16:28:21 +01:00
parent a762e518c6
commit b48d9a255e
22 changed files with 69 additions and 68 deletions

View File

@@ -87,6 +87,7 @@ class _:
foo::bar;
```
"""
segment: _ | ql.db_table_name("path_segments_") | doc("last segment of this path")
@annotate(GenericArgList)

2
rust/schema/ast.py generated
View File

@@ -479,7 +479,7 @@ class ParenthesizedArgList(AstNode, ):
class Path(AstNode, ):
qualifier: optional["Path"] | child
part: optional["PathSegment"] | child
segment: optional["PathSegment"] | child
class PathExpr(Expr, ):
attrs: list["Attr"] | child