1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: avoid value receiver (#7975)

This commit is contained in:
zakuro 2021-01-09 09:32:08 +09:00 committed by GitHub
parent dff36a9947
commit 8d3069f643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1054,7 +1054,7 @@ pub fn (mut p Parser) parse_ident(language table.Language) ast.Ident {
}
}
fn (p Parser) is_generic_call() bool {
fn (p &Parser) is_generic_call() bool {
lit0_is_capital := if p.tok.kind != .eof && p.tok.lit.len > 0 {
p.tok.lit[0].is_capital()
} else {