strip_comments

Function strip_comments 

Source
fn strip_comments(src: &str) -> String
Expand description

Replace /* ... */ and // ... comments with spaces in-place so the resulting string has the same length and column positions as the original — crucial because SymbolTable::infer_expr_type doesn’t remap offsets when reasoning about an arg’s text.