C#: Remove redundant test for indexers. Tested in library-tests\overrides.

This commit is contained in:
Calum Grant
2019-10-07 15:56:36 +01:00
parent ba6eb22cc9
commit d5a48a34e6

View File

@@ -111,7 +111,7 @@ namespace Semmle.Extraction.CSharp.Entities
public static Property Create(Context cx, IPropertySymbol prop)
{
bool isIndexer = prop.IsIndexer || prop.ExplicitInterfaceImplementations.Any(e => e.IsIndexer) || prop.Parameters.Any();
bool isIndexer = prop.IsIndexer || prop.Parameters.Any();
return isIndexer ? Indexer.Create(cx, prop) : PropertyFactory.Instance.CreateEntity(cx, prop);
}