Browse Source

Get type of new array

pull/1/head^2
David Srbecký 18 years ago
parent
commit
cfa3ecd70d
  1. 5
      src/AstMetodBodyBuilder.cs

5
src/AstMetodBodyBuilder.cs

@ -75,6 +75,7 @@ namespace Decompiler
} catch (NotImplementedException) { } catch (NotImplementedException) {
astStatement = MakeComment(description); astStatement = MakeComment(description);
} }
//astBlock.Children.Add(MakeComment(description));
astBlock.Children.Add(new Ast.LabelStatement(string.Format("IL_{0:X2}", instr.Offset))); astBlock.Children.Add(new Ast.LabelStatement(string.Format("IL_{0:X2}", instr.Offset)));
astBlock.Children.Add(astStatement); astBlock.Children.Add(astStatement);
//astBlock.Children.Add(MakeComment(" " + stackAnalysis.StackAfter[instr].ToString())); //astBlock.Children.Add(MakeComment(" " + stackAnalysis.StackAfter[instr].ToString()));
@ -370,7 +371,9 @@ namespace Decompiler
case Code.Not: return Cecil.Constants.Boolean; case Code.Not: return Cecil.Constants.Boolean;
#endregion #endregion
#region Arrays #region Arrays
case Code.Newarr: throw new NotImplementedException(); case Code.Newarr:
operandAsTypeRef.RankSpecifier = new int[1];
return operandAsTypeRef;
case Code.Ldlen: return Cecil.Constants.Int32; case Code.Ldlen: return Cecil.Constants.Int32;

Loading…
Cancel
Save