public void ForceAddConstant(Constant Value, ushort index) { Constants.Insert(index, Value); if (Value.Is8Byte()) { Constants.Insert(index + 1, new Constants.Skip()); } }
public ushort AddConstant(Constant Value) { int index = Constants.FindIndex(C => { return(C == Value); }); if (index > 0) { return((ushort)index); } else { ushort ReturnValue = (ushort)(Constants.Count); Constants.Add(Value); if (Value.Is8Byte()) { Constants.Add(new Constants.Skip()); } return(ReturnValue); } }