Remove old test code

This commit is contained in:
Yoshi Askharoun
2025-09-27 03:08:35 -05:00
parent 97c6e7d1c2
commit 47e368ab24
2 changed files with 2 additions and 33 deletions
+1 -19
View File
@@ -56,25 +56,7 @@ public class ControlFlowAnalyzer
} }
} }
public void PushBlock(CodeBlock block) public void PushBlock(CodeBlock block) => BlockStack.Push(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 bool TryPeekBlockInfo<T>(out T info) where T : ICodeBlockInfo => TryPeekBlock(out _, out info); public bool TryPeekBlockInfo<T>(out T info) where T : ICodeBlockInfo => TryPeekBlock(out _, out info);
+1 -14
View File
@@ -1,5 +1,4 @@
using Microsoft.Iris; using Microsoft.Iris.DecompXml;
using Microsoft.Iris.DecompXml;
using Microsoft.Iris.Markup; using Microsoft.Iris.Markup;
using UIX.Test.Fixtures; using UIX.Test.Fixtures;
using Xunit.Abstractions; using Xunit.Abstractions;
@@ -40,18 +39,6 @@ public class DecompileControlFlow
using TempFile uixFile = new($"{fileNameWithoutExtension}.uix", ".uix"); using TempFile uixFile = new($"{fileNameWithoutExtension}.uix", ".uix");
await uixFile.InitAsync(); 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 sourceLoadResult = MarkupSystem.ResolveLoadResult($"file://{uixFile.Path}", MarkupSystem.RootIslandId);
var decompiler = Decompiler.Load(sourceLoadResult); var decompiler = Decompiler.Load(sourceLoadResult);
var uixDocAc = decompiler.Decompile(); var uixDocAc = decompiler.Decompile();