Create a byte-level context with an inode reference. # Arguments `path` - The file path relative to repository root `line` - The line number (1-indexed) `inode` - The file's inode position in the graph `byte` - The byte offset within the file
(
path: impl Into<String>,
line: u64,
inode: Position<Inode>,
byte: u64,
)
| 199 | /// * `inode` - The file's inode position in the graph |
| 200 | /// * `byte` - The byte offset within the file |
| 201 | pub fn with_inode( |
| 202 | path: impl Into<String>, |
| 203 | line: u64, |
| 204 | inode: Position<Inode>, |
| 205 | byte: u64, |
| 206 | ) -> Self { |
| 207 | Self { |
| 208 | path: path.into(), |
| 209 | line, |
| 210 | inode: Some(inode), |
| 211 | byte, |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /// Convert to a simple `Local` (dropping byte and inode info). |
| 216 | pub fn to_local(&self) -> Local { |
nothing calls this directly
no outgoing calls
no test coverage detected