parser: minor cleanup in fn_args() (#13711)
parent
3f351036a2
commit
c1c3ae2a18
|
@ -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 == .comma && p.table.known_type(argname))
|
||||||
|| p.peek_tok.kind == .dot || p.peek_tok.kind == .rpar
|
|| p.peek_tok.kind == .dot || p.peek_tok.kind == .rpar
|
||||||
|| (p.tok.kind == .key_mut && (p.peek_token(2).kind == .comma
|
|| (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)))
|
&& p.peek_token(2).kind == .dot)))
|
||||||
// TODO copy pasta, merge 2 branches
|
// TODO copy pasta, merge 2 branches
|
||||||
if types_only {
|
if types_only {
|
||||||
|
|
Loading…
Reference in New Issue