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

grrr, wasn't properly copying the invoker method causing painful to debug symptoms :(

This commit is contained in:
Kevin Glynn 2011-11-13 21:43:37 +01:00
parent a020c85e5f
commit 826bf6b515

View File

@ -1143,8 +1143,13 @@ namespace Twiglet.CS2J.Translator.TypeRep
{ {
public InvokeRepTemplate() public InvokeRepTemplate()
{ {
} }
public InvokeRepTemplate(TypeRepTemplate parent, MethodRepTemplate copyFrom)
: base(parent, copyFrom)
{
}
public InvokeRepTemplate (string retType, string methodName, string[] tParams, List<ParamRepTemplate> pars) : base(retType, methodName, tParams, pars) public InvokeRepTemplate (string retType, string methodName, string[] tParams, List<ParamRepTemplate> pars) : base(retType, methodName, tParams, pars)
{ {
} }
@ -2956,7 +2961,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
{ {
if (copyFrom.Invoke != null) if (copyFrom.Invoke != null)
{ {
Invoke = copyFrom.Invoke; Invoke = new InvokeRepTemplate(this, copyFrom.Invoke);
} }
} }