mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C#: Remove redundant test for indexers. Tested in library-tests\overrides.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user