| 302 | } |
| 303 | |
| 304 | function impactEvidence(region) { |
| 305 | const host = el('section'); |
| 306 | for (const item of region.impact) { |
| 307 | const row = el('article', 'impact-reference'); |
| 308 | if (item.kind === 'changed_function') { |
| 309 | row.append(el('h3', '', title(item.function.change) + ' function'), el('code', '', item.function.id)); |
| 310 | row.append(el('p', '', item.function.signature_changed ? 'Declared signature changed.' : 'No declared signature change recorded.')); |
| 311 | } else { |
| 312 | const call = item.call; |
| 313 | row.append(el('h3', '', title(item.kind)), el('code', '', call.caller + ' → ' + call.callee)); |
| 314 | const binding = call.target_present ? (call.visibility_compatible ? 'Bound direct source reference' : 'Access-incompatible reference') : 'Reference to a removed target'; |
| 315 | row.append(el('p', '', `${binding}. ${call.binding}.`)); |
| 316 | row.append(el('p', 'muted', `${call.location.path}:${call.location.start_line} · declaration ${call.declaration.path}:${call.declaration.start_line}`)); |
| 317 | if (call.configuration_dependent) row.append(el('p', 'muted', 'Configuration-dependent source evidence; active compiler configuration is not established.')); |
| 318 | } |
| 319 | host.append(row); |
| 320 | } |
| 321 | return host; |
| 322 | } |
| 323 | |
| 324 | function selection(region, pass) { |
| 325 | const host = el('div'); |