Skip to content

Commit 92771aa

Browse files
committed
update std/jule/ast
1 parent f3b98a7 commit 92771aa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/std/jule-ast.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[struct Directive](#directive)\
88
[struct Type](#type)\
99
[struct IdentType](#identtype)\
10-
[struct SubIdentType](#subidenttype)\
1110
[struct NamespaceType](#namespacetype)\
1211
[struct ChanType](#chantype)\
1312
[struct SptrType](#sptrtype)\
@@ -31,6 +30,7 @@
3130
[struct UnaryExpr](#unaryexpr)\
3231
[struct VariadicExpr](#variadicexpr)\
3332
[struct CastExpr](#castexpr)\
33+
[struct TypeAssertionExpr](#typeassertionexpr)\
3434
[struct NamespaceExpr](#namespaceexpr)\
3535
[struct SubIdentExpr](#subidentexpr)\
3636
[struct BinaryExpr](#binaryexpr)\
@@ -158,14 +158,6 @@ struct IdentType {
158158
```
159159
Identifier type\.
160160

161-
## SubIdentType
162-
```jule
163-
struct SubIdentType {
164-
Idents: []&IdentType
165-
}
166-
```
167-
Sub\-identifier type\.
168-
169161
## NamespaceType
170162
```jule
171163
struct NamespaceType {
@@ -360,6 +352,15 @@ struct CastExpr {
360352
```
361353
Casting expression\.
362354

355+
## TypeAssertionExpr
356+
```jule
357+
struct TypeAssertionExpr {
358+
Kind: &Type
359+
Expr: &Expr
360+
}
361+
```
362+
Type assertion expression\.
363+
363364
## NamespaceExpr
364365
```jule
365366
struct NamespaceExpr {
@@ -873,7 +874,6 @@ Reports whether enum's type is default\.
873874
```jule
874875
struct TypeEnumItem {
875876
Token: &token::Token
876-
Ident: str
877877
Kind: &Type
878878
}
879879
```
@@ -984,7 +984,6 @@ Type of AST Node's data\.
984984
```jule
985985
enum TypeKind: type {
986986
&IdentType,
987-
&SubIdentType,
988987
&SptrType,
989988
&PtrType,
990989
&SliceType,
@@ -1024,6 +1023,7 @@ enum ExprData: type {
10241023
&KeyValPair,
10251024
&ChanRecv,
10261025
&ChanSend,
1026+
&TypeAssertionExpr,
10271027
}
10281028
```
10291029
Type of Expr's data\.

0 commit comments

Comments
 (0)