mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Remove old block handling
This commit is contained in:
@@ -164,10 +164,7 @@ partial class Decompiler
|
|||||||
blockStack.Push(ifBlock);
|
blockStack.Push(ifBlock);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.ReturnVoid:
|
case not OpCode.ReturnVoid:
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
if (!TryDecompileExpression(instruction, stack, blockStack))
|
if (!TryDecompileExpression(instruction, stack, blockStack))
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
break;
|
break;
|
||||||
@@ -214,13 +211,6 @@ partial class Decompiler
|
|||||||
.ToString();
|
.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void AddStatementToBlock(Stack<BlockSyntax> blockStack, StatementSyntax statement)
|
|
||||||
{
|
|
||||||
var block = blockStack.Pop();
|
|
||||||
block = block.AddStatements(statement);
|
|
||||||
blockStack.Push(block);
|
|
||||||
}
|
|
||||||
|
|
||||||
private bool TryDecompileExpression(Instruction instruction, Stack<object> stack, Stack<CodeBlockInfo> blockStack = null)
|
private bool TryDecompileExpression(Instruction instruction, Stack<object> stack, Stack<CodeBlockInfo> blockStack = null)
|
||||||
{
|
{
|
||||||
var opCode = instruction.OpCode;
|
var opCode = instruction.OpCode;
|
||||||
|
|||||||
Reference in New Issue
Block a user