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

pull/10523/head
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
1 changed files with 4 additions and 3 deletions

View File

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