1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//! `MethodDebugInformation` table loader implementation
//!
//! Provides the [`MethodDebugInformationLoader`] implementation for loading method debugging
//! metadata from the Portable PDB `MethodDebugInformation` table (0x31). This loader is responsible
//! for processing debugging information that maps IL instructions to source code locations,
//! essential for providing step-through debugging capabilities.
//!
//! # Table Structure
//!
//! The `MethodDebugInformation` table contains debugging information for methods:
//! - **Document**: Coded index reference to the source document
//! - **`SequencePoints`**: Blob heap reference containing encoded sequence point data
//!
//! # Loading Process
//!
//! The loader processes method debug information entries in parallel, resolving heap references
//! and storing the complete debugging metadata in the loader context for use by debugging tools
//! and runtime environments.
//!
//! # Reference
//! * [Portable PDB Format - MethodDebugInformation Table](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md#methoddebuginformation-table-0x31)
use crate::;
/// Loader for the `MethodDebugInformation` metadata table
///
/// Implements [`MetadataLoader`] to process the `MethodDebugInformation` table (0x31)
/// which contains debugging information for methods in Portable PDB format. This loader
/// handles the conversion from raw binary data to structured debugging metadata that
/// can be used by development tools and debuggers.
///
/// # Processing Strategy
///
/// The loader uses parallel processing to efficiently handle large numbers of method
/// debug information entries, resolving heap references and building the complete
/// debugging metadata map for quick runtime access.
///
/// # Dependencies
///
/// This loader has no dependencies on other metadata tables, as it only references
/// heap data and coded indices that are resolved during the loading process.
///
/// # Reference
/// * [Portable PDB Format - `MethodDebugInformation` Table](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md#methoddebuginformation-table-0x31)
;