Base:
property
MethodKind
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.MethodKind
33 references to MethodKind
Microsoft.CodeAnalysis.CSharp (33)
Binder\LocalBinderFactory.cs (1)
270
SourcePropertyAccessorSymbol {
MethodKind
: MethodKind.PropertySet } setter => getSetterParameters(setter),
Compiler\MethodBodySynthesizer.cs (4)
175
Debug.Assert(accessor.
MethodKind
== MethodKind.PropertyGet || accessor.
MethodKind
== MethodKind.PropertySet);
190
if (accessor.
MethodKind
== MethodKind.PropertyGet)
196
Debug.Assert(accessor.
MethodKind
== MethodKind.PropertySet);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
66
if (
MethodKind
== MethodKind.StaticConstructor && (_lazyParameters.Length != 0) &&
Symbols\Source\SourceEventAccessorSymbol.cs (2)
115
if (this.
MethodKind
== MethodKind.EventAdd)
127
Debug.Assert(this.
MethodKind
== MethodKind.EventRemove);
Symbols\Source\SourceMemberContainerSymbol.cs (5)
1968
if (conversion is {
MethodKind
: MethodKind.Conversion })
2045
if (method1.
MethodKind
== MethodKind.Constructor &&
2061
var methodKind = method1.
MethodKind
== MethodKind.Constructor ? MessageID.IDS_SK_CONSTRUCTOR : MessageID.IDS_SK_METHOD;
2069
var methodName = (method1.
MethodKind
== MethodKind.Destructor && method2.
MethodKind
== MethodKind.Destructor) ?
Symbols\Source\SourceMemberMethodSymbol.cs (6)
243
if (this.DeclaredAccessibility <= Accessibility.Private ||
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
248
ErrorCode code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
259
code = (this.
MethodKind
== MethodKind.Conversion || this.
MethodKind
== MethodKind.UserDefinedOperator) ?
987
if ((!IsStatic ||
MethodKind
is MethodKind.StaticConstructor) &&
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
62
if (
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
99
if (
MethodKind
!= MethodKind.ExplicitInterfaceImplementation)
205
return
MethodKind
== MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
82
Debug.Assert(this.
MethodKind
!= MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this");
127
CheckModifiers(
MethodKind
== MethodKind.ExplicitInterfaceImplementation, isVararg, HasAnyBody, locations[0], diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
359
if (
MethodKind
== MethodKind.PropertySet)
381
if (this.
MethodKind
== MethodKind.PropertyGet)
485
MethodKind
== MethodKind.PropertyGet;
561
else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor &&
MethodKind
== MethodKind.PropertySet)
616
MethodSymbol implementedAccessor = this.
MethodKind
== MethodKind.PropertyGet
654
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
738
bool isGetMethod = this.
MethodKind
== MethodKind.PropertyGet;
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
341
if (
MethodKind
== MethodKind.ExplicitInterfaceImplementation)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
46
return this.
MethodKind
== MethodKind.EventAdd