void CreateType(TypeDefinition type)
{
if (_created.Contains(type))
return;
_created.Add(type);
var saved = _current;
_current = type;
try
{
HandleTypeCreation(type);
}
catch (Exception e)
{
throw CompilerErrorFactory.InternalError(type, string.Format("Failed to create '{0}' type.", type), e);
}
_current = saved;
}