Skip to content

Commit

Permalink
Fix build error after re-base
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed May 6, 2024
1 parent 49f3936 commit ee4a89a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -158,14 +158,14 @@ private static void AddAspNetCoreDescriptors(List<ArgumentDescriptor> argumentDe
parameterConstraint: IsGetterParameter, // Headers are read/write
argumentPosition: 0),
ArgumentDescriptor.MethodInvocation(// Request.Headers.TryGetValue("id", out _)
invokedMethodSymbol: x => IsIDictionaryStringStringValuesInvocation(x, "TryGetValue"), // TryGetValue is from IDictionary<TKey, TValue> here. We check the type arguments.
invokedMemberConstraint: x => IsIDictionaryStringStringValuesInvocation(x, "TryGetValue"), // TryGetValue is from IDictionary<TKey, TValue> here. We check the type arguments.
invokedMemberNameConstraint: (name, comparison) => string.Equals(name, "TryGetValue", comparison),
invokedMemberNodeConstraint: IsAccessedViaHeaderDictionary,
parameterConstraint: x => string.Equals(x.Name, "key", StringComparison.Ordinal),
argumentListConstraint: (list, position) => list.Count == 2 && position is 0 or null,
refKind: RefKind.None),
ArgumentDescriptor.MethodInvocation(// Request.Headers.ContainsKey("id")
invokedMethodSymbol: x => IsIDictionaryStringStringValuesInvocation(x, "ContainsKey"),
invokedMemberConstraint: x => IsIDictionaryStringStringValuesInvocation(x, "ContainsKey"),
invokedMemberNameConstraint: (name, comparison) => string.Equals(name, "ContainsKey", comparison),
invokedMemberNodeConstraint: IsAccessedViaHeaderDictionary,
parameterConstraint: x => string.Equals(x.Name, "key", StringComparison.Ordinal),
Expand Down

0 comments on commit ee4a89a

Please sign in to comment.