Moved GetTypeImpl into GetType.

This commit is contained in:
jfrijters 2011-01-20 14:38:19 +00:00
Родитель 175af3395c
Коммит b97796b71c
1 изменённых файлов: 6 добавлений и 11 удалений

Просмотреть файл

@ -289,16 +289,6 @@ namespace IKVM.Reflection
internal abstract void GetTypesImpl(List<Type> list);
internal Type GetTypeImpl(string typeName)
{
Type type = FindType(TypeName.Split(TypeNameParser.Unescape(typeName)));
if (type == null && __IsMissing)
{
throw new MissingModuleException((MissingModule)this);
}
return type;
}
internal abstract Type FindType(TypeName name);
public Type GetType(string className)
@ -333,7 +323,12 @@ namespace IKVM.Reflection
return null;
}
}
return parser.Expand(GetTypeImpl(parser.FirstNamePart), this.Assembly, throwOnError, className);
Type type = FindType(TypeName.Split(TypeNameParser.Unescape(parser.FirstNamePart)));
if (type == null && __IsMissing)
{
throw new MissingModuleException((MissingModule)this);
}
return parser.Expand(type, this.Assembly, throwOnError, className);
}
public Type[] GetTypes()