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

ast: minor cleanup in is_blank_ident() (#13748)

This commit is contained in:
yuyi 2022-03-16 15:30:37 +08:00 committed by GitHub
parent 089c93b613
commit 57cba4d3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1692,10 +1692,10 @@ pub:
[inline] [inline]
pub fn (expr Expr) is_blank_ident() bool { pub fn (expr Expr) is_blank_ident() bool {
match expr { if expr is Ident {
Ident { return expr.kind == .blank_ident } return expr.kind == .blank_ident
else { return false }
} }
return false
} }
pub fn (expr Expr) pos() token.Pos { pub fn (expr Expr) pos() token.Pos {