(
fields: &[(String, Type)],
values: &[(&str, Operand)],
)
| 154 | } |
| 155 | if let Some(contribution) = contribution { |
| 156 | variants.push(contribution); |
| 157 | } |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | fn record_relative_static_methods( |
| 162 | class_name: &str, |
| 163 | data_type: &oomir::DataType, |
| 164 | relative_static_methods: &mut HashSet<oomir::FunctionKey>, |
| 165 | ) { |
| 166 | let methods = match data_type { |
| 167 | oomir::DataType::Class { methods, .. } | oomir::DataType::Interface { methods, .. } => { |
| 168 | methods |
| 169 | } |
| 170 | }; |
| 171 | for (method_name, method) in methods { |
| 172 | let oomir::DataTypeMethod::Function(function) = method else { |
| 173 | continue; |
| 174 | }; |
| 175 | if function.signature.is_static && function.signature.supports_relative_pointer_abi() { |
| 176 | relative_static_methods.insert(oomir::FunctionKey::new( |
| 177 | class_name, |
| 178 | method_name, |
| 179 | &function.signature, |
| 180 | )); |
| 181 | } |
| 182 | } |
| 183 | } |
nothing calls this directly
no test coverage detected