File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 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 ) \
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```
159159Identifier type\.
160160
161- ## SubIdentType
162- ``` jule
163- struct SubIdentType {
164- Idents: []&IdentType
165- }
166- ```
167- Sub\- identifier type\.
168-
169161## NamespaceType
170162``` jule
171163struct NamespaceType {
@@ -360,6 +352,15 @@ struct CastExpr {
360352```
361353Casting 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
365366struct NamespaceExpr {
@@ -873,7 +874,6 @@ Reports whether enum's type is default\.
873874``` jule
874875struct 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
985985enum 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```
10291029Type of Expr' ; s data\.
You can’t perform that action at this time.
0 commit comments