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:
parent
c53a344d2f
commit
7ec55e4c51
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user