7 overrides of IsIndexer
Microsoft.CodeAnalysis.CSharp (7)
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)
557public override bool IsIndexer
Symbols\SignatureOnlyPropertySymbol.cs (1)
104public override bool IsIndexer { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
492public override bool IsIndexer
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
55public override bool IsIndexer
59 references to IsIndexer
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (3)
8291if (property.IsIndexer || !property.IsIndexedProperty) 8445var name = candidate.IsIndexer ? SyntaxFacts.GetText(SyntaxKind.ThisKeyword) : candidate.Name; 8852return new ErrorPropertySymbol(candidate.ContainingType, propertyType, candidate.Name, candidate.IsIndexer, candidate.IsIndexedProperty);
BoundTree\BoundExpression.cs (1)
327if (!indexer.IsIndexer && indexer.IsIndexedProperty)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
316else if ((object)propertyAccess != null && propertyAccess.IsIndexedProperty() && !propertyAccess.IsIndexer)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
186Debug.Assert(!property.IsIndexer); 207Debug.Assert(indexer.IsIndexer || indexer.IsIndexedProperty);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
73Debug.Assert(node.Indexer.IsIndexer || node.Indexer.IsIndexedProperty); 82Debug.Assert(indexer.IsIndexer || indexer.IsIndexedProperty);
Symbols\MemberSymbolExtensions.cs (1)
183return symbol.Kind == SymbolKind.Property && ((PropertySymbol)symbol).IsIndexer;
Symbols\NamedTypeSymbol.cs (1)
325Debug.Assert(((PropertySymbol)candidate).IsIndexer);
Symbols\PropertySymbolExtensions.cs (1)
61return property.IsIndexedProperty && (!property.IsIndexer || property.HasRefOrOutParameter());
Symbols\PublicModel\PropertySymbol.cs (1)
28get { return _underlying.IsIndexer; }
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3584string propertyName = propertySymbol.IsIndexer ? propertySymbol.MetadataName : propertySymbol.Name;
Symbols\Symbol.cs (1)
527if (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)
15841Assert.False(m1P1.IsIndexer); 15871Assert.True(m1this.IsIndexer);
CodeGen\IndexerTests.cs (2)
155Assert.False(indexer.IsIndexer); 257Assert.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)
16894Assert.Equal(p3.IsIndexer, p3.IsVirtual); 16896Assert.Equal(!p3.IsIndexer, p3.IsStatic); 16900Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 16901Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 16903ValidateP3Accessor(p3.GetMethod, p3.IsIndexer ? test2P3.GetMethod : null); 16904ValidateP3Accessor(p3.SetMethod, p3.IsIndexer ? test2P3.SetMethod : null); 16908Assert.Equal(p3.IsIndexer, accessor.IsVirtual); 16909Assert.Equal(p3.IsIndexer, accessor.IsMetadataVirtual()); 16911Assert.Equal(!p3.IsIndexer, accessor.IsStatic); 16916Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17148Assert.Equal(p3.IsIndexer, p3.IsVirtual); 17150Assert.Equal(!p3.IsIndexer, p3.IsStatic); 17154Assert.Same(p3.IsIndexer ? p3 : null, test1.FindImplementationForInterfaceMember(p3)); 17155Assert.Same(p3.IsIndexer ? test2P3 : null, test2.FindImplementationForInterfaceMember(p3)); 17157ValidateP3Accessor(p3.GetMethod, p3.IsIndexer ? test2P3.GetMethod : null); 17158ValidateP3Accessor(p3.SetMethod, p3.IsIndexer ? test2P3.SetMethod : null); 17162Assert.Equal(p3.IsIndexer, accessor.IsVirtual); 17163Assert.Equal(p3.IsIndexer, accessor.IsMetadataVirtual()); 17165Assert.Equal(!p3.IsIndexer, accessor.IsStatic); 17170Assert.Same(p3.IsIndexer ? accessor : null, test1.FindImplementationForInterfaceMember(accessor)); 17180Assert.Equal(!p4.IsIndexer, p4.IsStatic); 17185Assert.Same(p4.IsIndexer ? test2P4 : null, test2.FindImplementationForInterfaceMember(p4)); 17187ValidateP4Accessor(p4.GetMethod, p4.IsIndexer ? test2P4.GetMethod : null); 17188ValidateP4Accessor(p4.SetMethod, p4.IsIndexer ? test2P4.SetMethod : null); 17195Assert.Equal(!p4.IsIndexer, accessor.IsStatic);
Symbols\IndexerTests.cs (2)
177Assert.True(property.IsIndexer); 2128Assert.True(indexer.IsIndexer);
Symbols\InterfaceImplementationTests.cs (1)
1768Assert.False(interfaceProperty.IsIndexer);
Symbols\Metadata\PE\LoadingIndexers.cs (3)
1026Assert.Equal(expectIndexer, property.IsIndexer); 1163Assert.True(interfaceIndexer.IsIndexer); 1167Assert.False(classIndexer.IsIndexer);