tools: remove vnames.v for now

pull/4237/head
Alexander Medvednikov 2020-04-04 16:39:08 +02:00
parent e600feda98
commit 33b03449d5
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,7 @@
module main module main
/*
QTODO
import ( import (
os os
flag flag
@ -83,3 +85,5 @@ fn main(){
analyze_v_file(file) analyze_v_file(file)
} }
} }
*/
fn main() {}

View File

@ -88,7 +88,7 @@ pub struct FlagParser {
pub const ( pub const (
// used for formating usage message // used for formating usage message
SPACE = ' ' space = ' '
UNDERLINE = '-----------------------------------------------' UNDERLINE = '-----------------------------------------------'
MAX_ARGS_NUMBER = 4048 MAX_ARGS_NUMBER = 4048
) )
@ -447,10 +447,10 @@ pub fn (fs FlagParser) usage() string {
} }
} }
option_names := ' ' + onames.join(', ') option_names := ' ' + onames.join(', ')
space := if option_names.len > SPACE.len-2 { space := if option_names.len > space.len-2 {
'\n${SPACE}' '\n${space}'
} else { } else {
SPACE[option_names.len..] space[option_names.len..]
} }
use += '${option_names}${space}${f.usage}\n' use += '${option_names}${space}${f.usage}\n'
} }

View File

@ -355,7 +355,7 @@ pub fn (c mut Checker) call_expr(call_expr mut ast.CallExpr) table.Type {
} }
if typ_sym.kind == .array_fixed {} if typ_sym.kind == .array_fixed {}
// println('fixed') // println('fixed')
c.error('!cannot use type `$typ_sym.str()` as type `$arg_typ_sym.str()` in argument ${i+1} to `$fn_name`', call_expr.pos) c.error('cannot use type `$typ_sym.str()` as type `$arg_typ_sym.str()` in argument ${i+1} to `$fn_name`', call_expr.pos)
} }
} }
return f.return_type return f.return_type