pub struct LineProgram<'a> { /* private fields */ }
Expand description
The LineProgram
provides access to source line information for a module and its procedures.
Implementations§
Source§impl<'a> LineProgram<'a>
impl<'a> LineProgram<'a>
Sourcepub fn lines(&self) -> LineIterator<'_>
pub fn lines(&self) -> LineIterator<'_>
Returns an iterator over all line information records of this module.
Note that line records are not guaranteed to be ordered by source code offset. If a
monotonic order by PdbInternalSectionOffset
or Rva
is required, the lines have to be
sorted manually.
Sourcepub fn files(&self) -> FileIterator<'a>
pub fn files(&self) -> FileIterator<'a>
Returns an iterator over all file records of this module.
Sourcepub fn lines_for_symbol(
&self,
offset: PdbInternalSectionOffset,
) -> LineIterator<'_>
pub fn lines_for_symbol( &self, offset: PdbInternalSectionOffset, ) -> LineIterator<'_>
Returns an iterator over line records for a symbol at the given section offset.
This may return line records before the start offset of the symbol. When using ASM,
specifically MASM, symbol records may specify a range that is smaller than the actual
code generated for this function. lines_for_symbol
returns all line records covering this
function, potentially exceeding this range.
Note that line records are not guaranteed to be ordered by source code offset. If a
monotonic order by PdbInternalSectionOffset
or Rva
is required, the lines have to be
sorted manually.
Sourcepub fn get_file_info(&self, offset: FileIndex) -> Result<FileInfo<'a>>
pub fn get_file_info(&self, offset: FileIndex) -> Result<FileInfo<'a>>
Looks up file information for the specified file.