Ast.BlockStatement TransformBlock(ILBlock block) { Ast.BlockStatement astBlock = new BlockStatement(); if (block != null) { foreach(ILNode node in block.GetChildren()) { astBlock.AddRange(TransformNode(node)); } } return astBlock; }
Ast.BlockStatement TransformBlock(ILBlock block) { Ast.BlockStatement astBlock = new BlockStatement(); if (block != null) { if (block.EntryGoto != null) astBlock.Add((Statement)TransformExpression(block.EntryGoto)); foreach(ILNode node in block.Body) { astBlock.AddRange(TransformNode(node)); } } return astBlock; }