@@ -127,7 +127,7 @@ class Stmt(AstNode):
127
127
128
128
129
129
@rust .doc_test_signature ("() -> ()" )
130
- class TypeRef (AstNode , Unimplemented ):
130
+ class Type (AstNode , Unimplemented ):
131
131
"""
132
132
The base class for type references.
133
133
```
@@ -151,7 +151,7 @@ class Path(AstNode, Unimplemented):
151
151
152
152
153
153
@rust .doc_test_signature ("() -> ()" )
154
- class GenericArgs (AstNode , Unimplemented ):
154
+ class GenericArgList (AstNode , Unimplemented ):
155
155
"""
156
156
The base class for generic arguments.
157
157
```
@@ -362,7 +362,7 @@ class MethodCallExpr(Expr):
362
362
receiver : Expr | child
363
363
method_name : string
364
364
args : list [Expr ] | child
365
- generic_args : optional [GenericArgs ] | child
365
+ generic_args : optional [GenericArgList ] | child
366
366
367
367
368
368
@rust .doc_test_signature ("(x: i32) -> i32" )
@@ -513,9 +513,9 @@ class YeetExpr(Expr):
513
513
514
514
515
515
@rust .doc_test_signature ("() -> ()" )
516
- class RecordLitField (AstNode ):
516
+ class RecordExprField (AstNode ):
517
517
"""
518
- A field in a record literal . For example `a: 1` in:
518
+ A field in a record expression . For example `a: 1` in:
519
519
```
520
520
Foo { a: 1, b: 2 };
521
521
```
@@ -525,9 +525,9 @@ class RecordLitField(AstNode):
525
525
526
526
527
527
@rust .doc_test_signature ("() -> ()" )
528
- class RecordLitExpr (Expr ):
528
+ class RecordExpr (Expr ):
529
529
"""
530
- A record literal expression. For example:
530
+ A record expression. For example:
531
531
```
532
532
let first = Foo { a: 1, b: 2 };
533
533
let second = Foo { a: 2, ..first };
@@ -536,7 +536,7 @@ class RecordLitExpr(Expr):
536
536
```
537
537
"""
538
538
path : optional [Path ] | child
539
- fields : list [RecordLitField ] | child
539
+ fields : list [RecordExprField ] | child
540
540
spread : optional [Expr ] | child
541
541
has_ellipsis : predicate
542
542
is_assignee_expr : predicate
@@ -577,7 +577,7 @@ class CastExpr(Expr):
577
577
```
578
578
"""
579
579
expr : Expr | child
580
- type_ref : TypeRef | child
580
+ type : Type | child
581
581
582
582
583
583
@rust .doc_test_signature ("() -> ()" )
@@ -608,7 +608,7 @@ class BoxExpr(Expr):
608
608
609
609
610
610
@rust .doc_test_signature ("() -> ()" )
611
- class UnaryOpExpr (Expr ):
611
+ class PrefixExpr (Expr ):
612
612
"""
613
613
A unary operation expression. For example:
614
614
```
@@ -622,7 +622,7 @@ class UnaryOpExpr(Expr):
622
622
623
623
624
624
@rust .doc_test_signature ("() -> ()" )
625
- class BinaryOpExpr (Expr ):
625
+ class BinExpr (Expr ):
626
626
"""
627
627
A binary operation expression. For example:
628
628
```
@@ -685,8 +685,8 @@ class ClosureExpr(Expr):
685
685
```
686
686
"""
687
687
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
690
690
body : Expr | child
691
691
closure_kind : string
692
692
is_move : predicate
@@ -741,7 +741,7 @@ class RepeatExpr(ArrayExpr):
741
741
742
742
743
743
@rust .doc_test_signature ("() -> ()" )
744
- class LiteralExpr (Expr ):
744
+ class Literal (Expr ):
745
745
"""
746
746
A literal expression. For example:
747
747
```
@@ -776,12 +776,12 @@ class OffsetOfExpr(Expr):
776
776
builtin # offset_of(Struct, field);
777
777
```
778
778
"""
779
- container : TypeRef | child
779
+ container : Type | child
780
780
fields : list [string ]
781
781
782
782
783
783
@rust .doc_test_signature ("() -> ()" )
784
- class InlineAsmExpr (Expr ):
784
+ class AsmExpr (Expr ):
785
785
"""
786
786
An inline assembly expression. For example:
787
787
```
@@ -809,7 +809,7 @@ class LetStmt(Stmt):
809
809
810
810
"""
811
811
pat : Pat | child
812
- type_ref : optional [TypeRef ] | child
812
+ type : optional [Type ] | child
813
813
initializer : optional [Expr ] | child
814
814
else_ : optional [Expr ] | child
815
815
@@ -858,7 +858,7 @@ class MissingPat(Pat):
858
858
859
859
860
860
@rust .doc_test_signature ("() -> ()" )
861
- class WildPat (Pat ):
861
+ class WildcardPat (Pat ):
862
862
"""
863
863
A wildcard pattern. For example:
864
864
```
@@ -895,7 +895,7 @@ class OrPat(Pat):
895
895
896
896
897
897
@rust .doc_test_signature ("() -> ()" )
898
- class RecordFieldPat (AstNode ):
898
+ class RecordPatField (AstNode ):
899
899
"""
900
900
A field in a record pattern. For example `a: 1` in:
901
901
```
@@ -919,7 +919,7 @@ class RecordPat(Pat):
919
919
"""
920
920
921
921
path : optional [Path ] | child
922
- args : list [RecordFieldPat ] | child
922
+ args : list [RecordPatField ] | child
923
923
has_ellipsis : predicate
924
924
925
925
@@ -970,7 +970,7 @@ class PathPat(Pat):
970
970
971
971
972
972
@rust .doc_test_signature ("() -> ()" )
973
- class LitPat (Pat ):
973
+ class LiteralPat (Pat ):
974
974
"""
975
975
A literal pattern. For example:
976
976
```
@@ -984,7 +984,7 @@ class LitPat(Pat):
984
984
985
985
986
986
@rust .doc_test_signature ("() -> ()" )
987
- class BindPat (Pat ):
987
+ class IdentPat (Pat ):
988
988
"""
989
989
A binding pattern. For example:
990
990
```
0 commit comments