public static void SyncFleeILGeneratorLabels(FleeIlGenerator source, FleeIlGenerator target) { while (source.LabelCount != target.LabelCount) { target.DefineLabel(); } }
public Label GetLabel(object key, FleeIlGenerator ilg) { Label lbl; var flag = !this.myKeyLabelMap.TryGetValue(RuntimeHelpers.GetObjectValue(key), out lbl); if (flag) { lbl = ilg.DefineLabel(); this.myKeyLabelMap.Add(RuntimeHelpers.GetObjectValue(key), lbl); } return(lbl); }