7 overrides of IsIndexer
Microsoft.CodeAnalysis.CSharp (7)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
61
public override bool
IsIndexer
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
117
public override bool
IsIndexer
Symbols\ErrorPropertySymbol.cs (1)
52
public override bool
IsIndexer
{ get { return _isIndexer; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
557
public override bool
IsIndexer
Symbols\SignatureOnlyPropertySymbol.cs (1)
104
public override bool
IsIndexer
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
492
public override bool
IsIndexer
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
55
public override bool
IsIndexer
59 references to IsIndexer
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Expressions.cs (3)
8291
if (property.
IsIndexer
|| !property.IsIndexedProperty)
8445
var name = candidate.
IsIndexer
? SyntaxFacts.GetText(SyntaxKind.ThisKeyword) : candidate.Name;
8852
return new ErrorPropertySymbol(candidate.ContainingType, propertyType, candidate.Name, candidate.
IsIndexer
, candidate.IsIndexedProperty);
BoundTree\BoundExpression.cs (1)
327
if (!indexer.
IsIndexer
&& indexer.IsIndexedProperty)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
316
else if ((object)propertyAccess != null && propertyAccess.IsIndexedProperty() && !propertyAccess.
IsIndexer
)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (2)
186
Debug.Assert(!property.
IsIndexer
);
207
Debug.Assert(indexer.
IsIndexer
|| indexer.IsIndexedProperty);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
73
Debug.Assert(node.Indexer.
IsIndexer
|| node.Indexer.IsIndexedProperty);
82
Debug.Assert(indexer.
IsIndexer
|| indexer.IsIndexedProperty);
Symbols\MemberSymbolExtensions.cs (1)
183
return symbol.Kind == SymbolKind.Property && ((PropertySymbol)symbol).
IsIndexer
;
Symbols\NamedTypeSymbol.cs (1)
325
Debug.Assert(((PropertySymbol)candidate).
IsIndexer
);
Symbols\PropertySymbolExtensions.cs (1)
61
return property.IsIndexedProperty && (!property.
IsIndexer
|| property.HasRefOrOutParameter());
Symbols\PublicModel\PropertySymbol.cs (1)
28
get { return _underlying.
IsIndexer
; }
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3584
string propertyName = propertySymbol.
IsIndexer
? propertySymbol.MetadataName : propertySymbol.Name;
Symbols\Symbol.cs (1)
527
if (property.
IsIndexer
|| property.MustCallMethodsDirectly)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
331
return !property.
IsIndexer
&& !property.IsOverride && property.GetMethod is not null;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
59
return _underlyingProperty.
IsIndexer
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (2)
15841
Assert.False(m1P1.
IsIndexer
);
15871
Assert.True(m1this.
IsIndexer
);
CodeGen\IndexerTests.cs (2)
155
Assert.False(indexer.
IsIndexer
);
257
Assert.True(indexer.
IsIndexer
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\AmbiguousOverrideTests.cs (6)
779
Assert.True(baseProperty1.
IsIndexer
);
780
Assert.True(baseProperty2.
IsIndexer
);
785
Assert.True(derivedProperty.
IsIndexer
);
853
Assert.True(baseProperty1.
IsIndexer
);
854
Assert.True(baseProperty2.
IsIndexer
);
859
Assert.True(derivedProperty.
IsIndexer
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Symbols\AnonymousTypesSymbolTests.cs (1)
1098
Assert.False(property.
IsIndexer
);
Symbols\DefaultInterfaceImplementationTests.cs (25)
16894
Assert.Equal(p3.
IsIndexer
, p3.IsVirtual);
16896
Assert.Equal(!p3.
IsIndexer
, p3.IsStatic);
16900
Assert.Same(p3.
IsIndexer
? p3 : null, test1.FindImplementationForInterfaceMember(p3));
16901
Assert.Same(p3.
IsIndexer
? test2P3 : null, test2.FindImplementationForInterfaceMember(p3));
16903
ValidateP3Accessor(p3.GetMethod, p3.
IsIndexer
? test2P3.GetMethod : null);
16904
ValidateP3Accessor(p3.SetMethod, p3.
IsIndexer
? test2P3.SetMethod : null);
16908
Assert.Equal(p3.
IsIndexer
, accessor.IsVirtual);
16909
Assert.Equal(p3.
IsIndexer
, accessor.IsMetadataVirtual());
16911
Assert.Equal(!p3.
IsIndexer
, accessor.IsStatic);
16916
Assert.Same(p3.
IsIndexer
? accessor : null, test1.FindImplementationForInterfaceMember(accessor));
17148
Assert.Equal(p3.
IsIndexer
, p3.IsVirtual);
17150
Assert.Equal(!p3.
IsIndexer
, p3.IsStatic);
17154
Assert.Same(p3.
IsIndexer
? p3 : null, test1.FindImplementationForInterfaceMember(p3));
17155
Assert.Same(p3.
IsIndexer
? test2P3 : null, test2.FindImplementationForInterfaceMember(p3));
17157
ValidateP3Accessor(p3.GetMethod, p3.
IsIndexer
? test2P3.GetMethod : null);
17158
ValidateP3Accessor(p3.SetMethod, p3.
IsIndexer
? test2P3.SetMethod : null);
17162
Assert.Equal(p3.
IsIndexer
, accessor.IsVirtual);
17163
Assert.Equal(p3.
IsIndexer
, accessor.IsMetadataVirtual());
17165
Assert.Equal(!p3.
IsIndexer
, accessor.IsStatic);
17170
Assert.Same(p3.
IsIndexer
? accessor : null, test1.FindImplementationForInterfaceMember(accessor));
17180
Assert.Equal(!p4.
IsIndexer
, p4.IsStatic);
17185
Assert.Same(p4.
IsIndexer
? test2P4 : null, test2.FindImplementationForInterfaceMember(p4));
17187
ValidateP4Accessor(p4.GetMethod, p4.
IsIndexer
? test2P4.GetMethod : null);
17188
ValidateP4Accessor(p4.SetMethod, p4.
IsIndexer
? test2P4.SetMethod : null);
17195
Assert.Equal(!p4.
IsIndexer
, accessor.IsStatic);
Symbols\IndexerTests.cs (2)
177
Assert.True(property.
IsIndexer
);
2128
Assert.True(indexer.
IsIndexer
);
Symbols\InterfaceImplementationTests.cs (1)
1768
Assert.False(interfaceProperty.
IsIndexer
);
Symbols\Metadata\PE\LoadingIndexers.cs (3)
1026
Assert.Equal(expectIndexer, property.
IsIndexer
);
1163
Assert.True(interfaceIndexer.
IsIndexer
);
1167
Assert.False(classIndexer.
IsIndexer
);