jtr/Jtr.Tools/Extensions/TranslationScopeExtensions.cs
mdnapo 96c203f842
All checks were successful
Run the JSON parser tests / test (push) Has been skipped
Moved UI to separate project, added Dockerfile & renamed project
2024-10-19 12:04:40 +02:00

9 lines
309 B
C#

namespace Jtr.Tools.Extensions;
public static class TranslationScopeExtensions
{
public static bool IsChildOf(this Stack<Json2CSharpTranslator.Context.TranslationScope> stack, Json2CSharpTranslator.Context.TranslationScope type)
{
return stack.Count > 1 && stack.ElementAt(1) == type;
}
}