From 7ec55e4c51d99bc5f0e8ebeb4359ddb8250a2366 Mon Sep 17 00:00:00 2001 From: yuyi Date: Sat, 19 Jun 2021 22:07:07 +0800 Subject: [PATCH] v.ast: add comments for ast.AsCast (#10516) --- vlib/v/ast/ast.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vlib/v/ast/ast.v b/vlib/v/ast/ast.v index 9cf2daa0d9..238204b965 100644 --- a/vlib/v/ast/ast.v +++ b/vlib/v/ast/ast.v @@ -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