Browse Source

newobj

pull/1/head^2
David Srbecký 18 years ago
parent
commit
49eeb49d1b
  1. 36
      bin/Debug/output.cs
  2. 7
      src/AstMetodBodyBuilder.cs

36
bin/Debug/output.cs

@ -25,49 +25,49 @@ namespace Reversi @@ -25,49 +25,49 @@ namespace Reversi
}
private void InitializeComponent()
{
System.Resources.ResourceManager V_0 = (IL__newobj(.ctor(), Type.GetTypeFromHandle((IL__ldtoken(Reversi.AboutDialog)))));
@this.iconPictureBox = (IL__newobj(.ctor()));
@this.titleLabel = (IL__newobj(.ctor()));
@this.versionLabel = (IL__newobj(.ctor()));
@this.okButton = (IL__newobj(.ctor()));
@this.copyrightLabel = (IL__newobj(.ctor()));
System.Resources.ResourceManager V_0 = (new System.Resources.ResourceManager(Type.GetTypeFromHandle((IL__ldtoken(Reversi.AboutDialog)))));
@this.iconPictureBox = (new System.Windows.Forms.PictureBox());
@this.titleLabel = (new System.Windows.Forms.Label());
@this.versionLabel = (new System.Windows.Forms.Label());
@this.okButton = (new System.Windows.Forms.Button());
@this.copyrightLabel = (new System.Windows.Forms.Label());
@this.SuspendLayout();
(@this.iconPictureBox).Location = (IL__newobj(.ctor(), 77, 56));
(@this.iconPictureBox).Location = (new System.Drawing.Point(77, 56));
(@this.iconPictureBox).Name = "iconPictureBox";
(@this.iconPictureBox).Size = (IL__newobj(.ctor(), 96, 96));
(@this.iconPictureBox).Size = (new System.Drawing.Size(96, 96));
(@this.iconPictureBox).TabIndex = 0;
(@this.iconPictureBox).TabStop = 0;
(@this.titleLabel).AutoSize = 1;
(@this.titleLabel).Font = (IL__newobj(.ctor(), "Microsoft Sans Serif", 8.25f, 1, 3, 0));
(@this.titleLabel).Location = (IL__newobj(.ctor(), 103, 16));
(@this.titleLabel).Font = (new System.Drawing.Font("Microsoft Sans Serif", 8.25f, 1, 3, 0));
(@this.titleLabel).Location = (new System.Drawing.Point(103, 16));
(@this.titleLabel).Name = "titleLabel";
(@this.titleLabel).Size = (IL__newobj(.ctor(), 44, 16));
(@this.titleLabel).Size = (new System.Drawing.Size(44, 16));
(@this.titleLabel).TabIndex = 0;
(@this.titleLabel).Text = "Reversi";
(@this.titleLabel).TextAlign = 32;
(@this.versionLabel).AutoSize = 1;
(@this.versionLabel).Location = (IL__newobj(.ctor(), 95, 32));
(@this.versionLabel).Location = (new System.Drawing.Point(95, 32));
(@this.versionLabel).Name = "versionLabel";
(@this.versionLabel).Size = (IL__newobj(.ctor(), 61, 16));
(@this.versionLabel).Size = (new System.Drawing.Size(61, 16));
(@this.versionLabel).TabIndex = 1;
(@this.versionLabel).Text = "Version 2.0";
(@this.versionLabel).TextAlign = 32;
(@this.okButton).DialogResult = 1;
(@this.okButton).Location = (IL__newobj(.ctor(), 88, 192));
(@this.okButton).Location = (new System.Drawing.Point(88, 192));
(@this.okButton).Name = "okButton";
(@this.okButton).TabIndex = 3;
(@this.okButton).Text = "OK";
(@this.copyrightLabel).AutoSize = 1;
(@this.copyrightLabel).Location = (IL__newobj(.ctor(), 36, 160));
(@this.copyrightLabel).Location = (new System.Drawing.Point(36, 160));
(@this.copyrightLabel).Name = "copyrightLabel";
(@this.copyrightLabel).Size = (IL__newobj(.ctor(), 178, 16));
(@this.copyrightLabel).Size = (new System.Drawing.Size(178, 16));
(@this.copyrightLabel).TabIndex = 2;
(@this.copyrightLabel).Text = "Copyright 2003-2005 by Mike Hall.";
(@this.copyrightLabel).TextAlign = 32;
@this.AcceptButton = (@this.okButton);
@this.AutoScaleBaseSize = (IL__newobj(.ctor(), 5, 13));
@this.AutoScaleBaseSize = (new System.Drawing.Size(5, 13));
@this.CancelButton = (@this.okButton);
@this.ClientSize = (IL__newobj(.ctor(), 250, 224));
@this.ClientSize = (new System.Drawing.Size(250, 224));
@this.ControlBox = 0;
@this.Controls.Add((@this.copyrightLabel));
@this.Controls.Add((@this.versionLabel));

7
src/AstMetodBodyBuilder.cs

@ -468,7 +468,12 @@ namespace Decompiler @@ -468,7 +468,12 @@ namespace Decompiler
case Code.Leave: throw new NotImplementedException();
case Code.Localloc: throw new NotImplementedException();
case Code.Mkrefany: throw new NotImplementedException();
case Code.Newobj: throw new NotImplementedException();
case Code.Newobj:
// TODO: Ensure that the corrent overloaded constructor is called
return new Ast.ObjectCreateExpression(
new Ast.TypeReference(((MethodReference)operand).DeclaringType.FullName),
new List<Expression>(args)
);
case Code.No: throw new NotImplementedException();
case Code.Nop: return new Ast.PrimitiveExpression("/* No-op */", "/* No-op */");
case Code.Or: throw new NotImplementedException();

Loading…
Cancel
Save