stryker-mutator / stryker-net

Mutation testing for .NET core and .NET framework!
https://stryker-mutator.io
Apache License 2.0
1.75k stars 176 forks source link

Exception Thrown When Delegate Function is Used #2897

Closed tommitchpersonal closed 2 months ago

tommitchpersonal commented 3 months ago

Describe the bug When stryker runs, it throws an exception if there is an anonymous delegate function in the target code. Appears to happen when upgrading from Stryker 4.0 to 4.0.1.

Logs C:\Users\mitch\source\repos\Bugs\StrykerDelegateBug\ExampleTestProject>dotnet-stryker

__ __   / | | | | | \ | | | |  | ( | | _ _ _| | ___ _ | | | | | |   _ | | '| | | | |/ / \ '| | . ` | | | |   ____) | || | | || | < / | | |\ | |__ | |   |__/ _|| _, ||__|| ()|| \|____| ||   / |   |/  

Version: 4.0.3

[12:43:51 INF] Analysis starting. [12:43:58 INF] Found project C:\Users\mitch\source\repos\Bugs\StrykerDelegateBug\StrykerDelegateBug\StrykerDelegateBug.csproj to mutate. [12:43:58 INF] Analysis complete. [12:43:58 INF] Building test project C:\Users\mitch\source\repos\Bugs\StrykerDelegateBug\ExampleTestProject\ExampleTestProject.csproj (1/1) [12:44:05 INF] Number of tests found: 1 for project C:\Users\mitch\source\repos\Bugs\StrykerDelegateBug\StrykerDelegateBug\StrykerDelegateBug.csproj. Initial test run started. [12:44:08 ERR] An error occurred during the mutation test run System.AggregateException: One or more errors occurred. (Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'node') Actual value was delegate(string name) { Console.WriteLine($"Hello {name}"); }.) ---> System.ArgumentOutOfRangeException: Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'node') Actual value was delegate(string name) { Console.WriteLine($"Hello {name}"); }. at Stryker.Core.Mutants.CsharpNodeOrchestrators.AnonymousFunctionExpressionOrchestrator.ParameterList(AnonymousFunctionExpressionSyntax node) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/AnonymousFunctionExpressionOrchestrator.cs:line 13 at Stryker.Core.Mutants.CsharpNodeOrchestrators.BaseFunctionOrchestrator`1.InjectMutations(T sourceNode, T targetNode, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/BaseFunctionOrchestrator.cs:line 108 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>cDisplayClass7_0.b_0(SyntaxNode original, SyntaxNode ) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitEqualsValueClause(EqualsValueClauseSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>cDisplayClass7_0.b0(SyntaxNode original, SyntaxNode ) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclarator(VariableDeclaratorSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.<>c__DisplayClass7_0.b0(SyntaxNode original, SyntaxNode ) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SeparatedSyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclaration(VariableDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in //src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in //src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitBlock(BlockSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitMethodDeclaration(MethodDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in //src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitClassDeclaration(ClassDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitNamespaceDeclaration(NamespaceDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitCompilationUnit(CompilationUnitSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.CsharpMutantOrchestrator.Mutate(SyntaxTree input, SemanticModel semanticModel) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpMutantOrchestrator.cs:line 125 at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in //src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 66 at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in //src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 88 at Stryker.Core.Initialisation.ProjectMutator.MutateProject(StrykerOptions options, MutationTestInput input, IReporter reporters) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 38 at Stryker.Core.Initialisation.ProjectOrchestrator.<>cDisplayClass7_0.b_0(MutationTestInput mutationTestInput) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70 at System.Threading.Tasks.Parallel.<>cDisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(StrykerOptions options, IReporter reporters, ITestRunner runner) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 68 at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in /_/src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 63 [12:44:08 INF] Time Elapsed 00:00:16.7454953 Unhandled exception. System.AggregateException: One or more errors occurred. (Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'node') Actual value was delegate(string name) { Console.WriteLine($"Hello {name}"); }.) ---> System.ArgumentOutOfRangeException: Exception of type 'System.ArgumentOutOfRangeException' was thrown. (Parameter 'node') Actual value was delegate(string name) { Console.WriteLine($"Hello {name}"); }. at Stryker.Core.Mutants.CsharpNodeOrchestrators.AnonymousFunctionExpressionOrchestrator.ParameterList(AnonymousFunctionExpressionSyntax node) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/AnonymousFunctionExpressionOrchestrator.cs:line 13 at Stryker.Core.Mutants.CsharpNodeOrchestrators.BaseFunctionOrchestrator1.InjectMutations(T sourceNode, T targetNode, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/BaseFunctionOrchestrator.cs:line 108 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.<>cDisplayClass7_0.b0(SyntaxNode original, SyntaxNode ) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitEqualsValueClause(EqualsValueClauseSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.<>c__DisplayClass7_0.b0(SyntaxNode original, SyntaxNode ) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclarator(VariableDeclaratorSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SeparatedSyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclaration(VariableDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in //src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitBlock(BlockSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitMethodDeclaration(MethodDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in //src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitClassDeclaration(ClassDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitNamespaceDeclaration(NamespaceDeclarationSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.MutationContext.Mutate(SyntaxNode node, SemanticModel model) in /_/src/Stryker.Core/Stryker.Core/Mutants/MutationContext.cs:line 83 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.<>c__DisplayClass7_0.<OrchestrateChildrenMutation>b__0(SyntaxNode original, SyntaxNode _) in /_/src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 82 at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList1 list) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitCompilationUnit(CompilationUnitSyntax node) at Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax.Accept[TResult](CSharpSyntaxVisitor1 visitor) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer1.Visit(SyntaxNode node) at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root, IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable1 nodes, Func3 computeReplacementNode, IEnumerable1 tokens, Func3 computeReplacementToken, IEnumerable1 trivia, Func3 computeReplacementTrivia) at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNodes[TRoot,TNode](TRoot root, IEnumerable1 nodes, Func3 computeReplacementNode) at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator2.OrchestrateChildrenMutation(TNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 81 at Stryker.Core.Mutants.CsharpNodeOrchestrators.NodeSpecificOrchestrator`2.Mutate(SyntaxNode node, SemanticModel semanticModel, MutationContext context) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpNodeOrchestrators/NodeSpecificOrchestrator.cs:line 122 at Stryker.Core.Mutants.CsharpMutantOrchestrator.Mutate(SyntaxTree input, SemanticModel semanticModel) in //src/Stryker.Core/Stryker.Core/Mutants/CsharpMutantOrchestrator.cs:line 125 at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in //src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 66 at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in //src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 88 at Stryker.Core.Initialisation.ProjectMutator.MutateProject(StrykerOptions options, MutationTestInput input, IReporter reporters) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 38 at Stryker.Core.Initialisation.ProjectOrchestrator.<>cDisplayClass7_0.b_0(MutationTestInput mutationTestInput) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70 at System.Threading.Tasks.Parallel.<>cDisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action`1 body) at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(StrykerOptions options, IReporter reporters, ITestRunner runner) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 68 at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in //src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 63 at Stryker.CLI.StrykerCli.RunStryker(IStrykerInputs inputs) in /_/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 102 at Stryker.CLI.StrykerCli.<>c__DisplayClass11_0.b0() in /_/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 74 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass143_0.b_0(CancellationToken ) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at Stryker.CLI.StrykerCli.Run(String[] args) in //src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 80 at Stryker.CLI.Program.Main(String[] args) in //src/Stryker.CLI/Stryker.CLI/Program.cs:line 14

Expected behavior Stryker runs and generates a mutation report.

Desktop (please complete the following information):

Additional context Discovered on a work project, was able to work around so not blocking. Took the liberty of creating an MRE that demonstrates the issue, see: https://github.com/tommitchpersonal/StrykerDelegateBug.

dupdob commented 3 months ago

Thanks for reporting this. It turns out there was indeed a regression for delegate. I just opened a PR with the fix (and a regression test)