parser: avoid value receiver (#7975)

pull/7748/head^2
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
1 changed files with 1 additions and 1 deletions

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 {