8 overrides of IsIndexer
Microsoft.CodeAnalysis.CSharp (8)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
61public override bool IsIndexer
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
117public override bool IsIndexer
Symbols\ErrorPropertySymbol.cs (1)
52public override bool IsIndexer { get { return _isIndexer; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
651public override bool IsIndexer
Symbols\SignatureOnlyPropertySymbol.cs (1)
104public override bool IsIndexer { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
599public override bool IsIndexer
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
41public override bool IsIndexer => Parameters.Length > 0;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
55public override bool IsIndexer
63 references to IsIndexer
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (1)
4682PropertySymbol { IsIndexer: true } indexer => getIndexerEscape(indexer, left, rightEscape),
Binder\Binder_Expressions.cs (4)
1513ContainingMember() is MethodSymbol { MethodKind: MethodKind.PropertyGet or MethodKind.PropertySet, AssociatedSymbol: PropertySymbol { IsIndexer: false } }) 9973if (property.IsIndexer || !property.IsIndexedProperty) 10150var name = candidate.IsIndexer ? SyntaxFacts.GetText(SyntaxKind.ThisKeyword) : candidate.Name; 10565return new ErrorPropertySymbol(candidate.ContainingType, propertyType, candidate.Name, candidate.IsIndexer, candidate.IsIndexedProperty);
BoundTree\BoundExpression.cs (1)
376if (!indexer.IsIndexer && indexer.IsIndexedProperty)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
328else if ((object)propertyAccess != null && propertyAccess.IsIndexedProperty() && !propertyAccess.IsIndexer)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
195Debug.Assert(!property.IsIndexer); 216Debug.Assert(indexer.IsIndexer || indexer.IsIndexedProperty);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
70Debug.Assert(node.Indexer.IsIndexer || node.Indexer.IsIndexedProperty); 79Debug.Assert(indexer.IsIndexer || indexer.IsIndexedProperty);
Symbols\MemberSymbolExtensions.cs (1)
418return symbol.Kind == SymbolKind.Property && ((PropertySymbol)symbol).IsIndexer;
Symbols\NamedTypeSymbol.cs (1)
321Debug.Assert(((PropertySymbol)candidate).IsIndexer);
Symbols\PropertySymbol.cs (1)
360=> !IsOverride && !IsExplicitInterfaceImplementation && (IsIndexer || IsIndexedProperty || this.GetIsNewExtensionMember());
Symbols\PropertySymbolExtensions.cs (1)
66return property.IsIndexedProperty && (!property.IsIndexer || property.HasRefOrOutParameter());
Symbols\PublicModel\PropertySymbol.cs (1)
28get { return _underlying.IsIndexer; }
Symbols\Source\SourceMemberContainerSymbol.cs (2)
4364string propertyName = propertySymbol.IsIndexer ? propertySymbol.MetadataName : propertySymbol.Name; 4657if (!((PropertySymbol)member).IsIndexer)
Symbols\Symbol.cs (1)
660if (property.IsIndexer || property.MustCallMethodsDirectly)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
331return !property.IsIndexer && !property.IsOverride && property.GetMethod is not null;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
59return _underlyingProperty.IsIndexer;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (2)
15835Assert.False(m1P1.IsIndexer); 15865Assert.True(m1this.IsIndexer);
CodeGen\IndexerTests.cs (2)
156Assert.False(indexer.IsIndexer); 258Assert.True(indexer.IsIndexer);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\AmbiguousOverrideTests.cs (6)
779Assert.True(baseProperty1.IsIndexer); 780Assert.True(baseProperty2.IsIndexer); 785Assert.True(derivedProperty.IsIndexer); 853Assert.True(baseProperty1.IsIndexer); 854Assert.True(baseProperty2.IsIndexer); 859Assert.True(derivedProperty.IsIndexer);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Symbols\AnonymousTypesSymbolTests.cs (1)
1098Assert.False(property.IsIndexer);
Symbols\DefaultInterfaceImplementationTests.cs (25)
17090Assert.Equal(p3.IsIndexer, p3.IsVirtual); 17092Assert.Equal(!p3.IsIndexer, p3.IsStatic); 17096Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17097Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17099ValidateP3Accessor(p3.GetMethod, p3.IsIndexer ? test2P3.GetMethod : null); 17100ValidateP3Accessor(p3.SetMethod, p3.IsIndexer ? test2P3.SetMethod : null); 17104Assert.Equal(p3.IsIndexer, accessor.IsVirtual); 17105Assert.Equal(p3.IsIndexer, accessor.IsMetadataVirtual()); 17107Assert.Equal(!p3.IsIndexer, accessor.IsStatic); 17112Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17344Assert.Equal(p3.IsIndexer, p3.IsVirtual); 17346Assert.Equal(!p3.IsIndexer, p3.IsStatic); 17350Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17351Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17353ValidateP3Accessor(p3.GetMethod, p3.IsIndexer ? test2P3.GetMethod : null); 17354ValidateP3Accessor(p3.SetMethod, p3.IsIndexer ? test2P3.SetMethod : null); 17358Assert.Equal(p3.IsIndexer, accessor.IsVirtual); 17359Assert.Equal(p3.IsIndexer, accessor.IsMetadataVirtual()); 17361Assert.Equal(!p3.IsIndexer, accessor.IsStatic); 17366Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17376Assert.Equal(!p4.IsIndexer, p4.IsStatic); 17381Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17383ValidateP4Accessor(p4.GetMethod, p4.IsIndexer ? test2P4.GetMethod : null); 17384ValidateP4Accessor(p4.SetMethod, p4.IsIndexer ? test2P4.SetMethod : null); 17391Assert.Equal(!p4.IsIndexer, accessor.IsStatic);
Symbols\IndexerTests.cs (2)
179Assert.True(property.IsIndexer); 2130Assert.True(indexer.IsIndexer);
Symbols\InterfaceImplementationTests.cs (1)
1768Assert.False(interfaceProperty.IsIndexer);
Symbols\Metadata\PE\LoadingIndexers.cs (3)
1036Assert.Equal(expectIndexer, property.IsIndexer); 1173Assert.True(interfaceIndexer.IsIndexer); 1177Assert.False(classIndexer.IsIndexer);