v.markused: assume methods for operator overload are always used

pull/10051/head
Delyan Angelov 2021-05-08 15:12:20 +03:00
parent 7db6d602de
commit 3a1cae0c4f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 6 additions and 0 deletions

View File

@ -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: