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]
pub fn (expr Expr) is_blank_ident() bool {
match expr {
Ident { return expr.kind == .blank_ident }
else { return false }
if expr is Ident {
return expr.kind == .blank_ident
}
return false
}
pub fn (expr Expr) pos() token.Pos {