From cfa3ecd70dea3622185473d9f26fee9bb84f94d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Fri, 9 Nov 2007 17:28:59 +0000 Subject: [PATCH] Get type of new array --- src/AstMetodBodyBuilder.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AstMetodBodyBuilder.cs b/src/AstMetodBodyBuilder.cs index 46ea02787..0ef5ac089 100644 --- a/src/AstMetodBodyBuilder.cs +++ b/src/AstMetodBodyBuilder.cs @@ -75,6 +75,7 @@ namespace Decompiler } catch (NotImplementedException) { astStatement = MakeComment(description); } + //astBlock.Children.Add(MakeComment(description)); astBlock.Children.Add(new Ast.LabelStatement(string.Format("IL_{0:X2}", instr.Offset))); astBlock.Children.Add(astStatement); //astBlock.Children.Add(MakeComment(" " + stackAnalysis.StackAfter[instr].ToString())); @@ -370,7 +371,9 @@ namespace Decompiler case Code.Not: return Cecil.Constants.Boolean; #endregion #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;