Create a new assembly context. # Arguments `header` - The change header # Example ```rust,ignore let header = ChangeHeader::builder().message("Test").build(); let ctx = AssemblyContext::new(header); ```
(header: ChangeHeader)
| 153 | /// let ctx = AssemblyContext::new(header); |
| 154 | /// ``` |
| 155 | pub fn new(header: ChangeHeader) -> Self { |
| 156 | Self { |
| 157 | header, |
| 158 | hunks: Vec::new(), |
| 159 | span_ops: Vec::new(), |
| 160 | file_ops: Vec::new(), |
| 161 | dependencies: HashSet::new(), |
| 162 | extra_known: HashSet::new(), |
| 163 | stats: AssemblyStats::new(), |
| 164 | placeholder_branch_base: 0, |
| 165 | placeholder_leaf_base: 0, |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /// Create a context with pre-allocated capacity. |
| 170 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected