1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

markused: always include slice_ni & substr_ni too (support s#[] and a#[] in -skip-unused)

This commit is contained in:
Delyan Angelov 2022-02-14 19:05:24 +02:00
parent efdbe9d92c
commit f8bf3db568
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -63,6 +63,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
'20.clone_static',
'20.trim',
'20.substr',
'20.substr_ni',
'20.at',
'20.at_with_check',
'20.index_kmp',
@ -88,6 +89,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
'22.reverse',
'22.repeat_to_depth',
'22.slice',
'22.slice_ni',
'22.slice2',
'61.get',
'61.set',