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];
|
return new string[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string mkJava() {
|
||||||
|
return TypeName;
|
||||||
|
}
|
||||||
|
|
||||||
public override TypeRepTemplate Instantiate(ICollection<TypeRepTemplate> args)
|
public override TypeRepTemplate Instantiate(ICollection<TypeRepTemplate> args)
|
||||||
{
|
{
|
||||||
UnknownRepTemplate copy = new UnknownRepTemplate(this);
|
UnknownRepTemplate copy = new UnknownRepTemplate(this);
|
||||||
|
@ -103,7 +103,7 @@ scope SymTab {
|
|||||||
StringBuilder argNames = new StringBuilder();
|
StringBuilder argNames = new StringBuilder();
|
||||||
bool first = true;
|
bool first = true;
|
||||||
if (args != null && args.Count > 0) {
|
if (args != null && args.Count > 0) {
|
||||||
argNames.Append("[");
|
argNames.Append("<");
|
||||||
foreach (TypeRepTemplate sub in args) {
|
foreach (TypeRepTemplate sub in args) {
|
||||||
if (!first) {
|
if (!first) {
|
||||||
argNames.Append(", ");
|
argNames.Append(", ");
|
||||||
@ -111,7 +111,7 @@ scope SymTab {
|
|||||||
}
|
}
|
||||||
argNames.Append(sub.TypeName);
|
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()));
|
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