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
//! # `PropertyMap` Table Module
//!
//! This module provides comprehensive access to the `PropertyMap` metadata table (ID 0x15),
//! which establishes the critical relationship between types and their properties in
//! .NET assemblies. The `PropertyMap` table enables property enumeration, reflection
//! operations, and type-property binding throughout the metadata system.
//!
//! ## Table Purpose
//!
//! The `PropertyMap` table provides:
//! - **Type-Property Binding**: Links types to their associated properties
//! - **Property Enumeration**: Enables discovery of all properties for a given type
//! - **Inheritance Support**: Facilitates property inheritance and override resolution
//! - **Reflection Foundation**: Supports property-based reflection and metadata queries
//!
//! ## Module Structure
//!
//! The module follows the standard dual-variant pattern for metadata tables:
//!
//! ### Raw Variant (`PropertyMapRaw`)
//! - Direct memory representation of table entries
//! - Contains unresolved table indexes for types and properties
//! - Minimal processing overhead during initial parsing
//! - Used for memory-efficient storage and initial metadata loading
//!
//! ### Owned Variant (`PropertyMapEntry`)
//! - Fully processed and validated table entries
//! - Contains resolved type and property references
//! - Provides high-level access methods and validation
//! - Used for application logic and metadata analysis
//!
//! ## Property Mapping Architecture
//!
//! `PropertyMap` entries establish one-to-many relationships:
//! - **Parent Type**: Reference to the type that owns the properties
//! - **Property List**: Collection of properties associated with the type
//! - **Range Mapping**: Efficient property range lookup within tables
//!
//! ## References
//!
//! - ECMA-335, Partition II, ยง22.35 - `PropertyMap` table specification
//! - [`crate::metadata::tables::Property`] - Property definitions
//! - [`crate::metadata::tables::TypeDefRaw`] - Type definitions
//! - [`crate::metadata::typesystem`] - Type system integration
use crateToken;
use SkipMap;
use Arc;
pub use *;
pub use *;
pub use *;
pub use *;
/// A concurrent map that holds Token to `PropertyMapEntry` mappings.
///
/// This skip list-based map provides efficient concurrent access to loaded
/// `PropertyMapEntry` entries indexed by their metadata tokens. Used by the loader
/// for storing and retrieving property mapping entries.
pub type PropertyMapEntryMap = ;
/// A thread-safe vector containing `PropertyMapEntry` entries.
///
/// This concurrent vector provides sequential access to `PropertyMapEntry` entries
/// while supporting safe concurrent iteration and access from multiple threads.
pub type PropertyMapEntryList = ;
/// A reference-counted pointer to a `PropertyMapEntry`.
///
/// This atomic reference-counted pointer enables safe sharing of `PropertyMapEntry`
/// instances across threads while providing automatic memory management.
pub type PropertyMapEntryRc = ;