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);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
64
if (
MethodKind
== MethodKind.StaticConstructor && (_lazyParameters.Length != 0) &&
Symbols\Source\SourceEventAccessorSymbol.cs (2)
118
if (this.
MethodKind
== MethodKind.EventAdd)
127
Debug.Assert(this.
MethodKind
== MethodKind.EventRemove);
Symbols\Source\SourceMemberContainerSymbol.cs (5)
2067
if (conversion is {
MethodKind
: MethodKind.Conversion })
2144
if (method1.
MethodKind
== MethodKind.Constructor &&
2160
var methodKind = method1.
MethodKind
== MethodKind.Constructor ? MessageID.IDS_SK_CONSTRUCTOR : MessageID.IDS_SK_METHOD;
2168
var methodName = (method1.
MethodKind
== MethodKind.Destructor && method2.
MethodKind
== MethodKind.Destructor) ?
Symbols\Source\SourceMemberMethodSymbol.cs (6)
340
if (this.DeclaredAccessibility <= Accessibility.Private ||
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
345
ErrorCode code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
356
code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
1098
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)
635
Debug.Assert(this.
MethodKind
!= MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this");
680
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;
562
else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor &&
MethodKind
== MethodKind.PropertySet)
617
MethodSymbol implementedAccessor = this.
MethodKind
== MethodKind.PropertyGet
646
Debug.Assert(
MethodKind
== MethodKind.PropertySet);
677
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
761
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
835
? (
MethodKind
== MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
839
? (
MethodKind
== MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (3)
346
{
MethodKind
: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword),
347
{
MethodKind
: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword),
348
{
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)
53
return this.
MethodKind
== MethodKind.EventAdd
130
BoundBlock body = CSharp.MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(fieldLikeEvent, isAddMethod:
MethodKind
== MethodKind.EventAdd, compilationState.Compilation, diagnostics);