1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v.ast: add comments for ast.AsCast (#10516)

This commit is contained in:
yuyi 2021-06-19 22:07:07 +08:00 committed by GitHub
parent c53a344d2f
commit 7ec55e4c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -902,13 +902,14 @@ pub mut:
has_cross_var bool has_cross_var bool
} }
// `expr as Ident`
pub struct AsCast { pub struct AsCast {
pub: pub:
expr Expr expr Expr // from expr: `expr` in `expr as Ident`
typ Type typ Type // to type
pos token.Position pos token.Position
pub mut: pub mut:
expr_type Type expr_type Type // from type
} }
// an enum value, like OS.macos or .macos // an enum value, like OS.macos or .macos