ast: minor cleanup in is_blank_ident()

pull/13748/head
yuyi98 2022-03-16 11:24:35 +08:00
parent 089c93b613
commit 1cc068a924
1 changed files with 3 additions and 3 deletions

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 {