From 6e0c9f637dfd46b51f0056f7bf5d63fd708ba9e3 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 27 Jul 2021 12:36:40 +0300 Subject: [PATCH] v.markused: support `import json` programs too --- vlib/v/markused/markused.v | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/vlib/v/markused/markused.v b/vlib/v/markused/markused.v index a1fbcad6f1..ff9c4118bd 100644 --- a/vlib/v/markused/markused.v +++ b/vlib/v/markused/markused.v @@ -99,7 +99,17 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F '65556.set', '65556.set_unsafe', // TODO: process the _vinit const initializations automatically too - 'json__decode_string', + 'json.decode_string', + 'json.decode_int', + 'json.decode_bool', + 'json.decode_u64', + 'json.encode_int', + 'json.encode_string', + 'json.encode_bool', + 'json.encode_u64', + 'json.json_print', + 'json.json_parse', + 'main.cb_propagate_test_error', 'os.getwd', 'os.init_os_args', 'os.init_os_args_wide',