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

Casts don't necessarily have both from and to types

This commit is contained in:
Kevin Glynn 2011-01-04 15:49:44 +01:00
parent 564e09ff14
commit 09327bcefb

View File

@ -72,8 +72,11 @@ namespace UpdateTxFiles
upgrade(inV as OldTSpace.TranslationBase, outV as NewTSpace.TranslationBase);
outV.Imports = inV.Imports;
outV.From = inV.From;
outV.To = inV.To;
if (!String.IsNullOrEmpty(inV.From))
outV.From = inV.From;
if (!String.IsNullOrEmpty(inV.To))
outV.To = inV.To;
if (!String.IsNullOrEmpty(inV.Java))
outV.Java = inV.Java;
@ -84,6 +87,7 @@ namespace UpdateTxFiles
upgrade(inV as OldTSpace.ConstructorRepTemplate, outV as NewTSpace.ConstructorRepTemplate);
outV.Name = inV.Name;
// Methods should have a return type, but in at least one case don't ...
outV.Return = inV.Return ?? "System.Void";
}