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:
parent
adb34dffbe
commit
94fa86d57e
@ -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);
|
||||
|
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user