mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Remove old test code
This commit is contained in:
@@ -56,25 +56,7 @@ public class ControlFlowAnalyzer
|
||||
}
|
||||
}
|
||||
|
||||
public void PushBlock(CodeBlock block)
|
||||
{
|
||||
BlockStack.Push(block);
|
||||
return;
|
||||
|
||||
while (BlockStack.Count > 1)
|
||||
{
|
||||
var currentBlock = BlockStack.Pop();
|
||||
var parentBlock = BlockStack.Peek();
|
||||
|
||||
if (currentBlock.EndOffset <= parentBlock.EndOffset)
|
||||
{
|
||||
BlockStack.Push(currentBlock);
|
||||
break;
|
||||
}
|
||||
|
||||
currentBlock.FinalizeBlock(parentBlock);
|
||||
}
|
||||
}
|
||||
public void PushBlock(CodeBlock block) => BlockStack.Push(block);
|
||||
|
||||
public bool TryPeekBlockInfo<T>(out T info) where T : ICodeBlockInfo => TryPeekBlock(out _, out info);
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Iris;
|
||||
using Microsoft.Iris.DecompXml;
|
||||
using Microsoft.Iris.DecompXml;
|
||||
using Microsoft.Iris.Markup;
|
||||
using UIX.Test.Fixtures;
|
||||
using Xunit.Abstractions;
|
||||
@@ -40,18 +39,6 @@ public class DecompileControlFlow
|
||||
using TempFile uixFile = new($"{fileNameWithoutExtension}.uix", ".uix");
|
||||
await uixFile.InitAsync();
|
||||
|
||||
var uibPathEx = Path.ChangeExtension(uixFile.Path, ".uib");
|
||||
|
||||
// Compile the UIX source
|
||||
CompilerInput uixCompilerInput = new()
|
||||
{
|
||||
SourceFileName = uixFile.Path,
|
||||
OutputFileName = uibPathEx
|
||||
};
|
||||
var uixSuccess = MarkupCompiler.Compile([uixCompilerInput], default);
|
||||
Assert.True(uixSuccess);
|
||||
|
||||
// Decompile the compiled UIX
|
||||
var sourceLoadResult = MarkupSystem.ResolveLoadResult($"file://{uixFile.Path}", MarkupSystem.RootIslandId);
|
||||
var decompiler = Decompiler.Load(sourceLoadResult);
|
||||
var uixDocAc = decompiler.Decompile();
|
||||
|
||||
Reference in New Issue
Block a user