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