Base:
property
MethodKind
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.MethodKind
41 references to MethodKind
Microsoft.CodeAnalysis.CSharp (41)
Binder\LocalBinderFactory.cs (1)
311
SourcePropertyAccessorSymbol {
MethodKind
: MethodKind.PropertySet } setter => getSetterParameters(setter),
Compiler\MethodBodySynthesizer.cs (4)
176
Debug.Assert(accessor.
MethodKind
== MethodKind.PropertyGet || accessor.
MethodKind
== MethodKind.PropertySet);
191
if (accessor.
MethodKind
== MethodKind.PropertyGet)
197
Debug.Assert(accessor.
MethodKind
== MethodKind.PropertySet);
FlowAnalysis\NullableWalker.cs (1)
1817
Debug.Assert(getterNullResilienceData is null || symbol is SourcePropertyAccessorSymbol {
MethodKind
: MethodKind.PropertyGet });
Symbols\Source\SourceConstructorSymbolBase.cs (1)
64
if (
MethodKind
== MethodKind.StaticConstructor && (_lazyParameters.Length != 0) &&
Symbols\Source\SourceEventAccessorSymbol.cs (4)
118
if (this.
MethodKind
== MethodKind.EventAdd)
127
Debug.Assert(this.
MethodKind
== MethodKind.EventRemove);
241
? (
MethodKind
== MethodKind.EventAdd ? other.AddMethod : other.RemoveMethod)
245
? (
MethodKind
== MethodKind.EventAdd ? other.AddMethod : other.RemoveMethod)
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
261
return IsExtern && this.
MethodKind
== MethodKind.EventAdd
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2173
if (method1.OriginalDefinition is SourceMemberMethodSymbol {
MethodKind
: MethodKind.Constructor } constructor &&
Symbols\Source\SourceMemberMethodSymbol.cs (6)
352
if (this.DeclaredAccessibility <= Accessibility.Private ||
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
357
ErrorCode code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
368
code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
1058
if ((!IsStatic ||
MethodKind
is MethodKind.StaticConstructor) &&
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
61
if (
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
92
if (
MethodKind
!= MethodKind.ExplicitInterfaceImplementation)
198
return
MethodKind
== MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
640
Debug.Assert(this.
MethodKind
!= MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this");
685
CheckModifiers(
MethodKind
== MethodKind.ExplicitInterfaceImplementation, _location, diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (10)
358
if (
MethodKind
== MethodKind.PropertySet)
380
if (this.
MethodKind
== MethodKind.PropertyGet)
484
MethodKind
== MethodKind.PropertyGet;
566
else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor &&
MethodKind
== MethodKind.PropertySet)
621
MethodSymbol implementedAccessor = this.
MethodKind
== MethodKind.PropertyGet
650
Debug.Assert(
MethodKind
== MethodKind.PropertySet);
684
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
768
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
815
? (
MethodKind
== MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
819
? (
MethodKind
== MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (3)
347
{
MethodKind
: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword),
348
{
MethodKind
: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword),
349
{
MethodKind
: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword),
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
344
if (
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
128
if (accessor.
MethodKind
== MethodKind.EventAdd)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (2)
60
return this.
MethodKind
== MethodKind.EventAdd
146
BoundBlock body = CSharp.MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(fieldLikeEvent, isAddMethod:
MethodKind
== MethodKind.EventAdd, compilationState.Compilation, diagnostics);