1
0
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:
yuyi 2020-12-26 18:22:06 +08:00 committed by GitHub
parent 80a9d08505
commit 1558bd1658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {