Browse Source

ldfld

pull/1/head^2
David Srbecký 18 years ago
parent
commit
6e4b542709
  1. 82
      bin/Debug/output.cs
  2. 2
      src/AstMetodBodyBuilder.cs

82
bin/Debug/output.cs

@ -12,8 +12,8 @@ namespace Reversi @@ -12,8 +12,8 @@ namespace Reversi
protected virtual void Dispose(bool disposing)
{
if (!(!disposing)) {
if (!(!(IL__ldfld(components, @this)))) {
IL__callvirt(Dispose(), (IL__ldfld(components, @this)));
if (!(!(@this.components))) {
IL__callvirt(Dispose(), (@this.components));
goto BasicBlock_4;
}
else {
@ -32,48 +32,48 @@ namespace Reversi @@ -32,48 +32,48 @@ namespace Reversi
IL__stfld(okButton, @this, (IL__newobj(.ctor())));
IL__stfld(copyrightLabel, @this, (IL__newobj(.ctor())));
@this.SuspendLayout();
IL__callvirt(set_Location(), (IL__ldfld(iconPictureBox, @this)), (IL__newobj(.ctor(), 77, 56)));
IL__callvirt(set_Name(), (IL__ldfld(iconPictureBox, @this)), "iconPictureBox");
IL__callvirt(set_Size(), (IL__ldfld(iconPictureBox, @this)), (IL__newobj(.ctor(), 96, 96)));
IL__callvirt(set_TabIndex(), (IL__ldfld(iconPictureBox, @this)), 0);
IL__callvirt(set_TabStop(), (IL__ldfld(iconPictureBox, @this)), 0);
IL__callvirt(set_AutoSize(), (IL__ldfld(titleLabel, @this)), 1);
IL__callvirt(set_Font(), (IL__ldfld(titleLabel, @this)), (IL__newobj(.ctor(), "Microsoft Sans Serif", 8.25f, 1, 3, 0)));
IL__callvirt(set_Location(), (IL__ldfld(titleLabel, @this)), (IL__newobj(.ctor(), 103, 16)));
IL__callvirt(set_Name(), (IL__ldfld(titleLabel, @this)), "titleLabel");
IL__callvirt(set_Size(), (IL__ldfld(titleLabel, @this)), (IL__newobj(.ctor(), 44, 16)));
IL__callvirt(set_TabIndex(), (IL__ldfld(titleLabel, @this)), 0);
IL__callvirt(set_Text(), (IL__ldfld(titleLabel, @this)), "Reversi");
IL__callvirt(set_TextAlign(), (IL__ldfld(titleLabel, @this)), 32);
IL__callvirt(set_AutoSize(), (IL__ldfld(versionLabel, @this)), 1);
IL__callvirt(set_Location(), (IL__ldfld(versionLabel, @this)), (IL__newobj(.ctor(), 95, 32)));
IL__callvirt(set_Name(), (IL__ldfld(versionLabel, @this)), "versionLabel");
IL__callvirt(set_Size(), (IL__ldfld(versionLabel, @this)), (IL__newobj(.ctor(), 61, 16)));
IL__callvirt(set_TabIndex(), (IL__ldfld(versionLabel, @this)), 1);
IL__callvirt(set_Text(), (IL__ldfld(versionLabel, @this)), "Version 2.0");
IL__callvirt(set_TextAlign(), (IL__ldfld(versionLabel, @this)), 32);
IL__callvirt(set_DialogResult(), (IL__ldfld(okButton, @this)), 1);
IL__callvirt(set_Location(), (IL__ldfld(okButton, @this)), (IL__newobj(.ctor(), 88, 192)));
IL__callvirt(set_Name(), (IL__ldfld(okButton, @this)), "okButton");
IL__callvirt(set_TabIndex(), (IL__ldfld(okButton, @this)), 3);
IL__callvirt(set_Text(), (IL__ldfld(okButton, @this)), "OK");
IL__callvirt(set_AutoSize(), (IL__ldfld(copyrightLabel, @this)), 1);
IL__callvirt(set_Location(), (IL__ldfld(copyrightLabel, @this)), (IL__newobj(.ctor(), 36, 160)));
IL__callvirt(set_Name(), (IL__ldfld(copyrightLabel, @this)), "copyrightLabel");
IL__callvirt(set_Size(), (IL__ldfld(copyrightLabel, @this)), (IL__newobj(.ctor(), 178, 16)));
IL__callvirt(set_TabIndex(), (IL__ldfld(copyrightLabel, @this)), 2);
IL__callvirt(set_Text(), (IL__ldfld(copyrightLabel, @this)), "Copyright 2003-2005 by Mike Hall.");
IL__callvirt(set_TextAlign(), (IL__ldfld(copyrightLabel, @this)), 32);
@this.set_AcceptButton((IL__ldfld(okButton, @this)));
IL__callvirt(set_Location(), (@this.iconPictureBox), (IL__newobj(.ctor(), 77, 56)));
IL__callvirt(set_Name(), (@this.iconPictureBox), "iconPictureBox");
IL__callvirt(set_Size(), (@this.iconPictureBox), (IL__newobj(.ctor(), 96, 96)));
IL__callvirt(set_TabIndex(), (@this.iconPictureBox), 0);
IL__callvirt(set_TabStop(), (@this.iconPictureBox), 0);
IL__callvirt(set_AutoSize(), (@this.titleLabel), 1);
IL__callvirt(set_Font(), (@this.titleLabel), (IL__newobj(.ctor(), "Microsoft Sans Serif", 8.25f, 1, 3, 0)));
IL__callvirt(set_Location(), (@this.titleLabel), (IL__newobj(.ctor(), 103, 16)));
IL__callvirt(set_Name(), (@this.titleLabel), "titleLabel");
IL__callvirt(set_Size(), (@this.titleLabel), (IL__newobj(.ctor(), 44, 16)));
IL__callvirt(set_TabIndex(), (@this.titleLabel), 0);
IL__callvirt(set_Text(), (@this.titleLabel), "Reversi");
IL__callvirt(set_TextAlign(), (@this.titleLabel), 32);
IL__callvirt(set_AutoSize(), (@this.versionLabel), 1);
IL__callvirt(set_Location(), (@this.versionLabel), (IL__newobj(.ctor(), 95, 32)));
IL__callvirt(set_Name(), (@this.versionLabel), "versionLabel");
IL__callvirt(set_Size(), (@this.versionLabel), (IL__newobj(.ctor(), 61, 16)));
IL__callvirt(set_TabIndex(), (@this.versionLabel), 1);
IL__callvirt(set_Text(), (@this.versionLabel), "Version 2.0");
IL__callvirt(set_TextAlign(), (@this.versionLabel), 32);
IL__callvirt(set_DialogResult(), (@this.okButton), 1);
IL__callvirt(set_Location(), (@this.okButton), (IL__newobj(.ctor(), 88, 192)));
IL__callvirt(set_Name(), (@this.okButton), "okButton");
IL__callvirt(set_TabIndex(), (@this.okButton), 3);
IL__callvirt(set_Text(), (@this.okButton), "OK");
IL__callvirt(set_AutoSize(), (@this.copyrightLabel), 1);
IL__callvirt(set_Location(), (@this.copyrightLabel), (IL__newobj(.ctor(), 36, 160)));
IL__callvirt(set_Name(), (@this.copyrightLabel), "copyrightLabel");
IL__callvirt(set_Size(), (@this.copyrightLabel), (IL__newobj(.ctor(), 178, 16)));
IL__callvirt(set_TabIndex(), (@this.copyrightLabel), 2);
IL__callvirt(set_Text(), (@this.copyrightLabel), "Copyright 2003-2005 by Mike Hall.");
IL__callvirt(set_TextAlign(), (@this.copyrightLabel), 32);
@this.set_AcceptButton((@this.okButton));
IL__callvirt(set_AutoScaleBaseSize(), @this, (IL__newobj(.ctor(), 5, 13)));
@this.set_CancelButton((IL__ldfld(okButton, @this)));
@this.set_CancelButton((@this.okButton));
@this.set_ClientSize((IL__newobj(.ctor(), 250, 224)));
@this.set_ControlBox(0);
IL__callvirt(Add(), @this.get_Controls(), (IL__ldfld(copyrightLabel, @this)));
IL__callvirt(Add(), @this.get_Controls(), (IL__ldfld(versionLabel, @this)));
IL__callvirt(Add(), @this.get_Controls(), (IL__ldfld(titleLabel, @this)));
IL__callvirt(Add(), @this.get_Controls(), (IL__ldfld(okButton, @this)));
IL__callvirt(Add(), @this.get_Controls(), (IL__ldfld(iconPictureBox, @this)));
IL__callvirt(Add(), @this.get_Controls(), (@this.copyrightLabel));
IL__callvirt(Add(), @this.get_Controls(), (@this.versionLabel));
IL__callvirt(Add(), @this.get_Controls(), (@this.titleLabel));
IL__callvirt(Add(), @this.get_Controls(), (@this.okButton));
IL__callvirt(Add(), @this.get_Controls(), (@this.iconPictureBox));
@this.set_FormBorderStyle(3);
@this.set_Icon((IL__castclass(System.Drawing.Icon, (IL__callvirt(GetObject(), V_0, "$this.Icon")))));
@this.set_MaximizeBox(0);

2
src/AstMetodBodyBuilder.cs

@ -408,7 +408,7 @@ namespace Decompiler @@ -408,7 +408,7 @@ namespace Decompiler
case Code.Ldc_I8:
case Code.Ldc_R4:
case Code.Ldc_R8: return new Ast.PrimitiveExpression(operand, null);
case Code.Ldfld: throw new NotImplementedException();
case Code.Ldfld: return new Ast.MemberReferenceExpression(arg1, ((FieldDefinition)operand).Name);
case Code.Ldflda: throw new NotImplementedException();
case Code.Ldftn: throw new NotImplementedException();
case Code.Ldloc: return new Ast.IdentifierExpression(((VariableDefinition)operand).Name);

Loading…
Cancel
Save