parser: minor cleanup in fn_args() (#13711)

pull/13714/head
yuyi 2022-03-11 16:42:03 +08:00 committed by GitHub
parent 3f351036a2
commit c1c3ae2a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ fn (mut p Parser) fn_args() ([]ast.Param, bool, bool) {
|| (p.peek_tok.kind == .comma && p.table.known_type(argname))
|| p.peek_tok.kind == .dot || p.peek_tok.kind == .rpar
|| (p.tok.kind == .key_mut && (p.peek_token(2).kind == .comma
|| p.peek_token(2).kind == .rpar || (p.peek_token(1).kind == .name
|| p.peek_token(2).kind == .rpar || (p.peek_tok.kind == .name
&& p.peek_token(2).kind == .dot)))
// TODO copy pasta, merge 2 branches
if types_only {