ast: minor cleanup in is_blank_ident() (#13748)
parent
089c93b613
commit
57cba4d3f0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue