Skip to content

Commit 04e4f43

Browse files
authored
markused: add new auto_str() used funcs for bootstrap (#25938)
1 parent 1f7b2b1 commit 04e4f43

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vlib/v/markused/walker.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,10 @@ fn (mut w Walker) mark_resource_dependencies() {
14421442
if w.features.auto_str || w.uses_dump {
14431443
w.fn_by_name(ast.string_type_idx.str() + '.repeat')
14441444
w.fn_by_name('tos3')
1445+
builderptr_idx := int(w.table.find_type('strings.Builder').ref()).str()
1446+
w.fn_by_name(builderptr_idx + '.write_string')
1447+
w.fn_by_name(builderptr_idx + '.writeln')
1448+
w.fn_by_name(builderptr_idx + '.indent')
14451449
}
14461450
if w.uses_index || w.pref.is_shared {
14471451
w.fn_by_name(array_idx_str + '.slice')

0 commit comments

Comments
 (0)