public int JumpToLabel(ECJumpToLabel jump) { for (int i = 0; i < commands.Length; i++) { if (commands[i] is ECLabel) { ECLabel label = (ECLabel)commands[i]; if (jump.CompareToLabel(label)) { return(i); } } } return(index); }
public bool CompareToLabel(ECLabel other) { return(label.Equals(other.Label())); }