mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: minor optimization of expr()
(#7575)
This commit is contained in:
parent
80a9d08505
commit
1558bd1658
@ -22,7 +22,7 @@ pub fn (mut p Parser) expr(precedence int) ast.Expr {
|
||||
// Prefix
|
||||
match p.tok.kind {
|
||||
.key_mut, .key_shared, .key_atomic, .key_static {
|
||||
node = p.name_expr()
|
||||
node = p.parse_ident(table.Language.v)
|
||||
p.is_stmt_ident = is_stmt_ident
|
||||
}
|
||||
.name {
|
||||
|
Loading…
Reference in New Issue
Block a user