|
|
|
@ -157,9 +157,9 @@ namespace Decompiler
@@ -157,9 +157,9 @@ namespace Decompiler
|
|
|
|
|
FalseStatement = TransformBlock(conditionalNode.TrueBlock) |
|
|
|
|
}; |
|
|
|
|
} else if (node is ILTryCatchBlock) { |
|
|
|
|
ILTryCatchBlock tryCachNode = ((ILTryCatchBlock)node); |
|
|
|
|
ILTryCatchBlock tryCatchNode = ((ILTryCatchBlock)node); |
|
|
|
|
List<Ast.CatchClause> catchClauses = new List<CatchClause>(); |
|
|
|
|
foreach (var catchClause in tryCachNode.CatchBlocks) { |
|
|
|
|
foreach (var catchClause in tryCatchNode.CatchBlocks) { |
|
|
|
|
catchClauses.Add(new Ast.CatchClause { |
|
|
|
|
Type = AstBuilder.ConvertType(catchClause.ExceptionType), |
|
|
|
|
VariableName = "exception", |
|
|
|
@ -167,9 +167,9 @@ namespace Decompiler
@@ -167,9 +167,9 @@ namespace Decompiler
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
yield return new Ast.TryCatchStatement { |
|
|
|
|
TryBlock = TransformBlock(tryCachNode.TryBlock), |
|
|
|
|
TryBlock = TransformBlock(tryCatchNode.TryBlock), |
|
|
|
|
CatchClauses = catchClauses, |
|
|
|
|
FinallyBlock = TransformBlock(tryCachNode.FinallyBlock) |
|
|
|
|
FinallyBlock = tryCatchNode.FinallyBlock != null ? TransformBlock(tryCatchNode.FinallyBlock) : null |
|
|
|
|
}; |
|
|
|
|
} else if (node is ILBlock) { |
|
|
|
|
yield return TransformBlock((ILBlock)node); |
|
|
|
|