Browse Source

ldtoken

pull/1/head^2
David Srbecký 18 years ago
parent
commit
3ca49743ae
  1. 2
      bin/Debug/output.cs
  2. 10
      src/AstMetodBodyBuilder.cs

2
bin/Debug/output.cs

@ -25,7 +25,7 @@ namespace Reversi @@ -25,7 +25,7 @@ namespace Reversi
}
private void InitializeComponent()
{
System.Resources.ResourceManager V_0 = (new System.Resources.ResourceManager(Type.GetTypeFromHandle((IL__ldtoken(Reversi.AboutDialog)))));
System.Resources.ResourceManager V_0 = (new System.Resources.ResourceManager(Type.GetTypeFromHandle((typeof(Reversi.AboutDialog).TypeHandle))));
@this.iconPictureBox = (new System.Windows.Forms.PictureBox());
@this.titleLabel = (new System.Windows.Forms.Label());
@this.versionLabel = (new System.Windows.Forms.Label());

10
src/AstMetodBodyBuilder.cs

@ -463,7 +463,15 @@ namespace Decompiler @@ -463,7 +463,15 @@ namespace Decompiler
case Code.Ldsfld: throw new NotImplementedException();
case Code.Ldsflda: throw new NotImplementedException();
case Code.Ldstr: return new Ast.PrimitiveExpression(operand, null);
case Code.Ldtoken: throw new NotImplementedException();
case Code.Ldtoken:
if (operand is Cecil.TypeReference) {
return new Ast.MemberReferenceExpression(
new Ast.TypeOfExpression(new Ast.TypeReference(((Cecil.TypeReference)operand).FullName)),
"TypeHandle"
);
} else {
throw new NotImplementedException();
}
case Code.Ldvirtftn: throw new NotImplementedException();
case Code.Leave: throw new NotImplementedException();
case Code.Localloc: throw new NotImplementedException();

Loading…
Cancel
Save