We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498f9b2 commit 31ac644Copy full SHA for 31ac644
csharp/extractor/Semmle.Extraction.CSharp/Entities/Expression.cs
@@ -170,7 +170,8 @@ private static bool ContainsPattern(SyntaxNode node) =>
170
public static Expression? CreateGenerated(Context cx, IParameterSymbol parameter, IExpressionParentEntity parent,
171
int childIndex, Extraction.Entities.Location location)
172
{
173
- if (!parameter.HasExplicitDefaultValue)
+ if (!parameter.HasExplicitDefaultValue ||
174
+ parameter.Type is IErrorTypeSymbol)
175
176
return null;
177
}
0 commit comments