Skip to content

Commit 7ec55e4

Browse files
authored
v.ast: add comments for ast.AsCast (#10516)
1 parent c53a344 commit 7ec55e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vlib/v/ast/ast.v

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -902,13 +902,14 @@ pub mut:
902902
has_cross_var bool
903903
}
904904

905+
// `expr as Ident`
905906
pub struct AsCast {
906907
pub:
907-
expr Expr
908-
typ Type
908+
expr Expr // from expr: `expr` in `expr as Ident`
909+
typ Type // to type
909910
pos token.Position
910911
pub mut:
911-
expr_type Type
912+
expr_type Type // from type
912913
}
913914

914915
// an enum value, like OS.macos or .macos

0 commit comments

Comments
 (0)