From eb9c26411f9c3a8649fedae8dbc06d9aac5e4e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Sat, 19 Dec 2020 21:20:29 +0100 Subject: [PATCH] Fix merge error --- .../CSharp/CSharpSpecializedEnumerableCreationAnalyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Roslyn.Diagnostics.Analyzers/CSharp/CSharpSpecializedEnumerableCreationAnalyzer.cs b/src/Roslyn.Diagnostics.Analyzers/CSharp/CSharpSpecializedEnumerableCreationAnalyzer.cs index c5c8d03ef2..f59aa91345 100644 --- a/src/Roslyn.Diagnostics.Analyzers/CSharp/CSharpSpecializedEnumerableCreationAnalyzer.cs +++ b/src/Roslyn.Diagnostics.Analyzers/CSharp/CSharpSpecializedEnumerableCreationAnalyzer.cs @@ -67,7 +67,7 @@ private bool ShouldAnalyzeExpression(SyntaxNode expression, SemanticModel semant return (expression.Kind()) switch { SyntaxKind.ArrayCreationExpression - or SyntaxKind.ImplicitArrayCreationExpression => ShouldAnalyzeArrayCreationExpression(expression, semanticModel), + or SyntaxKind.ImplicitArrayCreationExpression => ShouldAnalyzeArrayCreationExpression(expression, semanticModel, cancellationToken), SyntaxKind.SimpleMemberAccessExpression => true, _ => false, };