mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
urllib: switch => match
This commit is contained in:
@@ -247,7 +247,9 @@ fn (table mut Table) fn_gen_name(f &Fn) string {
|
||||
return name
|
||||
}
|
||||
|
||||
fn (p mut Parser) gen_method_call(receiver_type, ftyp string, cgen_name string, receiver Var,method_ph int) {
|
||||
fn (p mut Parser) gen_method_call(receiver_type, ftyp string, cgen_name string,
|
||||
receiver Var,method_ph int)
|
||||
{
|
||||
//mut cgen_name := p.table.fn_gen_name(f)
|
||||
mut method_call := cgen_name + '('
|
||||
// if receiver is key_mut or a ref (&), generate & for the first arg
|
||||
|
||||
Reference in New Issue
Block a user