/// <summary>
/// Merge the inherit's slots into my slot maps.
/// slots: Slot[] by order
/// nameToSlot: String name -> Slot
/// nameToIndex: String name -> Long index of slots
/// </summary>
private void merge(Type inheritedType, List slots, Hashtable nameToSlot, Hashtable nameToIndex)
{
if (inheritedType == null)
{
return;
}
List inheritedSlots = inheritedType.reflect().slots();
for (int i = 0; i < inheritedSlots.sz(); ++i)
{
merge((Slot)inheritedSlots.get(i), slots, nameToSlot, nameToIndex);
}
}