All checks were successful
Run the JSON parser tests / test (push) Has been skipped
9 lines
309 B
C#
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;
|
|
}
|
|
} |