1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Retain complete unknown types in final source

This commit is contained in:
Kevin Glynn 2011-02-18 16:25:15 +01:00
parent adb34dffbe
commit 94fa86d57e
2 changed files with 7 additions and 2 deletions

View File

@ -3174,6 +3174,11 @@ namespace Twiglet.CS2J.Translator.TypeRep
return new string[0];
}
}
public override string mkJava() {
return TypeName;
}
public override TypeRepTemplate Instantiate(ICollection<TypeRepTemplate> args)
{
UnknownRepTemplate copy = new UnknownRepTemplate(this);

View File

@ -103,7 +103,7 @@ scope SymTab {
StringBuilder argNames = new StringBuilder();
bool first = true;
if (args != null && args.Count > 0) {
argNames.Append("[");
argNames.Append("<");
foreach (TypeRepTemplate sub in args) {
if (!first) {
argNames.Append(", ");
@ -111,7 +111,7 @@ scope SymTab {
}
argNames.Append(sub.TypeName);
}
argNames.Append("]");
argNames.Append(">");
}
TypeRepTemplate tyRep = AppEnv.Search($NSContext::globalNamespaces, mkGenericTypeAlias(name, args != null ? args.Count : 0), new UnknownRepTemplate(name + argNames.ToString()));