Skip to content

Commit 8dcf93d

Browse files
committed
1 parent 452424a commit 8dcf93d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

rust/schema.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Stmt(AstNode):
127127

128128

129129
@rust.doc_test_signature("() -> ()")
130-
class TypeRef(AstNode, Unimplemented):
130+
class Type(AstNode, Unimplemented):
131131
"""
132132
The base class for type references.
133133
```
@@ -151,7 +151,7 @@ class Path(AstNode, Unimplemented):
151151

152152

153153
@rust.doc_test_signature("() -> ()")
154-
class GenericArgs(AstNode, Unimplemented):
154+
class GenericArgList(AstNode, Unimplemented):
155155
"""
156156
The base class for generic arguments.
157157
```
@@ -362,7 +362,7 @@ class MethodCallExpr(Expr):
362362
receiver: Expr | child
363363
method_name: string
364364
args: list[Expr] | child
365-
generic_args: optional[GenericArgs] | child
365+
generic_args: optional[GenericArgList] | child
366366

367367

368368
@rust.doc_test_signature("(x: i32) -> i32")
@@ -513,9 +513,9 @@ class YeetExpr(Expr):
513513

514514

515515
@rust.doc_test_signature("() -> ()")
516-
class RecordLitField(AstNode):
516+
class RecordExprField(AstNode):
517517
"""
518-
A field in a record literal. For example `a: 1` in:
518+
A field in a record expression. For example `a: 1` in:
519519
```
520520
Foo { a: 1, b: 2 };
521521
```
@@ -525,9 +525,9 @@ class RecordLitField(AstNode):
525525

526526

527527
@rust.doc_test_signature("() -> ()")
528-
class RecordLitExpr(Expr):
528+
class RecordExpr(Expr):
529529
"""
530-
A record literal expression. For example:
530+
A record expression. For example:
531531
```
532532
let first = Foo { a: 1, b: 2 };
533533
let second = Foo { a: 2, ..first };
@@ -536,7 +536,7 @@ class RecordLitExpr(Expr):
536536
```
537537
"""
538538
path: optional[Path] | child
539-
fields: list[RecordLitField] | child
539+
fields: list[RecordExprField] | child
540540
spread: optional[Expr] | child
541541
has_ellipsis: predicate
542542
is_assignee_expr: predicate
@@ -577,7 +577,7 @@ class CastExpr(Expr):
577577
```
578578
"""
579579
expr: Expr | child
580-
type_ref: TypeRef | child
580+
type: Type | child
581581

582582

583583
@rust.doc_test_signature("() -> ()")
@@ -608,7 +608,7 @@ class BoxExpr(Expr):
608608

609609

610610
@rust.doc_test_signature("() -> ()")
611-
class UnaryOpExpr(Expr):
611+
class PrefixExpr(Expr):
612612
"""
613613
A unary operation expression. For example:
614614
```
@@ -622,7 +622,7 @@ class UnaryOpExpr(Expr):
622622

623623

624624
@rust.doc_test_signature("() -> ()")
625-
class BinaryOpExpr(Expr):
625+
class BinExpr(Expr):
626626
"""
627627
A binary operation expression. For example:
628628
```
@@ -685,8 +685,8 @@ class ClosureExpr(Expr):
685685
```
686686
"""
687687
args: list[Pat] | child
688-
arg_types: list[optional[TypeRef]] | child
689-
ret_type: optional[TypeRef] | child
688+
arg_types: list[optional[Type]] | child
689+
ret_type: optional[Type] | child
690690
body: Expr | child
691691
closure_kind: string
692692
is_move: predicate
@@ -741,7 +741,7 @@ class RepeatExpr(ArrayExpr):
741741

742742

743743
@rust.doc_test_signature("() -> ()")
744-
class LiteralExpr(Expr):
744+
class Literal(Expr):
745745
"""
746746
A literal expression. For example:
747747
```
@@ -776,12 +776,12 @@ class OffsetOfExpr(Expr):
776776
builtin # offset_of(Struct, field);
777777
```
778778
"""
779-
container: TypeRef | child
779+
container: Type | child
780780
fields: list[string]
781781

782782

783783
@rust.doc_test_signature("() -> ()")
784-
class InlineAsmExpr(Expr):
784+
class AsmExpr(Expr):
785785
"""
786786
An inline assembly expression. For example:
787787
```
@@ -809,7 +809,7 @@ class LetStmt(Stmt):
809809
810810
"""
811811
pat: Pat | child
812-
type_ref: optional[TypeRef] | child
812+
type: optional[Type] | child
813813
initializer: optional[Expr] | child
814814
else_: optional[Expr] | child
815815

@@ -858,7 +858,7 @@ class MissingPat(Pat):
858858

859859

860860
@rust.doc_test_signature("() -> ()")
861-
class WildPat(Pat):
861+
class WildcardPat(Pat):
862862
"""
863863
A wildcard pattern. For example:
864864
```
@@ -895,7 +895,7 @@ class OrPat(Pat):
895895

896896

897897
@rust.doc_test_signature("() -> ()")
898-
class RecordFieldPat(AstNode):
898+
class RecordPatField(AstNode):
899899
"""
900900
A field in a record pattern. For example `a: 1` in:
901901
```
@@ -919,7 +919,7 @@ class RecordPat(Pat):
919919
"""
920920

921921
path: optional[Path] | child
922-
args: list[RecordFieldPat] | child
922+
args: list[RecordPatField] | child
923923
has_ellipsis: predicate
924924

925925

@@ -970,7 +970,7 @@ class PathPat(Pat):
970970

971971

972972
@rust.doc_test_signature("() -> ()")
973-
class LitPat(Pat):
973+
class LiteralPat(Pat):
974974
"""
975975
A literal pattern. For example:
976976
```
@@ -984,7 +984,7 @@ class LitPat(Pat):
984984

985985

986986
@rust.doc_test_signature("() -> ()")
987-
class BindPat(Pat):
987+
class IdentPat(Pat):
988988
"""
989989
A binding pattern. For example:
990990
```

0 commit comments

Comments
 (0)