private List<MosaMethod> GetMethodTableFromBaseType(MosaType type)
{
var methodTable = new List<MosaMethod>();
if (type.BaseType != null)
{
List<MosaMethod> baseMethodTable;
if (!typeMethodTables.TryGetValue(type.BaseType, out baseMethodTable))
{
// Method table for the base type has not been create yet, so create it now
baseMethodTable = CreateMethodTable(type.BaseType);
}
methodTable = new List<MosaMethod>(baseMethodTable);
}
return methodTable;
}