v.markused: assume methods for operator overload are always used
parent
7db6d602de
commit
3a1cae0c4f
|
@ -96,6 +96,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []ast.Fi
|
|||
'65557.set',
|
||||
'65557.set_unsafe',
|
||||
// TODO: process the _vinit const initializations automatically too
|
||||
'json__decode_string',
|
||||
'os.getwd',
|
||||
'os.init_os_args',
|
||||
'os.init_os_args_wide',
|
||||
|
@ -156,6 +157,11 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []ast.Fi
|
|||
all_fn_root_names << k
|
||||
continue
|
||||
}
|
||||
if mfn.name in ['+', '-', '*', '%', '/', '<', '=='] {
|
||||
// TODO: mark the used operators in the checker
|
||||
all_fn_root_names << k
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
// handle assertions and testing framework callbacks:
|
||||
|
|
Loading…
Reference in New Issue