Skip to main content

annotate_rename

Function annotate_rename 

Source
pub fn annotate_rename(scene: &SceneMap, name: &str) -> String
Expand description

Annotate an UNRESOLVED reference with the name that replaced it, when the miss looks like the per-loop naming change.

Per-loop cap/hole naming keyed names that used to be positional ({cap_base}_START -> {cap_base}:L4_START, {id}:HOLE:1 -> {id}:HOLE:L9). Live models mostly do not need this — the CONTAINER groups keep the old spelling resolvable — but a reference the containers cannot cover (a positional X[1] disambiguation from before the change, or a {id}:HOLE:{n} written against a since-edited sketch) still misses, and a bare “unresolved” says nothing about why. This turns the miss into the fix:

E4:S3:PROFILE_START[1] (renamed: E4:S3:PROFILE:L9_START)

The candidates come from the live scene, so the hint is what the model ACTUALLY built, not a guess.