Skip to content

Commit a91e2de

Browse files
committed
v: remove dump() calls inside the compiler itself (make bootstrapping of dump() implemented before cgen easier)
1 parent 11ecfc0 commit a91e2de

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vlib/v/markused/markused.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ pub fn mark_used(mut table ast.Table, mut pref_ pref.Preferences, ast_files []&a
462462
}
463463

464464
if 'debug_used_features' in pref_.compile_defines {
465-
dump(table.used_features)
465+
eprintln('> debug_used_features: ${table.used_features}')
466466
}
467467

468468
mut walker := Walker.new(

vlib/v/scanner/scanner.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ fn (mut s Scanner) end_of_file() token.Token {
567567
s.line_nr--
568568
if s.file_path == internally_generated_v_code {
569569
// show a bit more context for that case, since the source may not be easily visible by just inspecting a source file on the filesystem
570-
dump(s.text#[0..50])
571-
dump(s.text#[-50..])
572-
dump(s.text.len)
570+
eprintln('> internally_generated_v_code, start: ${s.text#[0..50]}')
571+
eprintln('> internally_generated_v_code, end: ${s.text#[-50..]}')
572+
eprintln('> internally_generated_v_code, len: ${s.text.len}')
573573
}
574574
panic(
575575
'the end of file `${s.file_path}` has been reached ${s.max_eofs} times already, the v parser is probably stuck.\n' +

0 commit comments

Comments
 (0)