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:
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
Block a user