public void UnionInPlace(NodeVariables Vars) { for (var i = 0; i < Vars.AssignedIds.Count; i++) { if (!AssignedIds.Contains(Vars.AssignedIds[i])) { AssignedIds.Add(Vars.AssignedIds[i]); } } for (var i = 0; i < Vars.UsedBeforeAssignIds.Count; i++) { if (!UsedBeforeAssignIds.Contains(Vars.UsedBeforeAssignIds[i])) { UsedBeforeAssignIds.Add(Vars.UsedBeforeAssignIds[i]); } } for (var i = 0; i < Vars.AddressUsed.Count; i++) { if (!AddressUsed.Contains(Vars.AddressUsed[i])) { AddressUsed.Add(Vars.AddressUsed[i]); } } }
public override bool Begin() { if (!base.Begin()) { return(false); } Vars = new NodeVariables(); return(true); }