Skip to content

Commit f3f5465

Browse files
committed
VersionBump : v1.2.2
1 parent 353b112 commit f3f5465

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/CodeOfChaos.GeneratorTools/CodeOfChaos.GeneratorTools.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!-- Main package metadata -->
1313
<PackageId>CodeOfChaos.GeneratorTools</PackageId>
14-
<Version>1.2.1</Version>
14+
<Version>1.2.2</Version>
1515
<Authors>Anna Sas</Authors>
1616
<Description>A library to help you create code generators more easily</Description>
1717
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-generator_tools/</PackageProjectUrl>

src/CodeOfChaos.GeneratorTools/Extensions/NamedTypeSymbolExtensions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public static bool InheritsFrom(this INamedTypeSymbol symbol, INamedTypeSymbol b
1414
Stack<INamedTypeSymbol> stack = new();
1515
stack.Push(symbol);
1616

17-
while (stack.TryPop(out INamedTypeSymbol? currentSymbol)) {
17+
while (stack.Count != 0) {
18+
INamedTypeSymbol? currentSymbol = stack.Pop();
1819
if (SymbolEqualityComparer.Default.Equals(currentSymbol, baseType)) return true;
1920
foreach (INamedTypeSymbol @interface in currentSymbol.AllInterfaces) stack.Push(@interface);
2021
if (currentSymbol.BaseType == null) continue;

0 commit comments

Comments
 (0)