(vd_begin: &BareSourceLocation, src_file: &Path)
| 80 | } |
| 81 | |
| 82 | fn get_post_vd_begin(vd_begin: &BareSourceLocation, src_file: &Path) -> Result<usize> { |
| 83 | let begin_loc = vd_begin.offset; |
| 84 | let buffer = std::fs::read_to_string(src_file)?; |
| 85 | let last_char = buffer.chars().nth(begin_loc - 1).unwrap(); |
| 86 | if last_char == '*' { |
| 87 | Ok(begin_loc - 1) |
| 88 | } else { |
| 89 | Ok(begin_loc) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | fn get_vd_end_offset(vd_end: &BareSourceLocation, src_file: &Path) -> Result<usize> { |
| 94 | let buffer = std::fs::read_to_string(src_file).unwrap(); |
no outgoing calls
no test coverage detected