Base:
property
MethodKind
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.MethodKind
41 references to MethodKind
Microsoft.CodeAnalysis.CSharp (41)
Binder\LocalBinderFactory.cs (1)
311SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertySet } setter => getSetterParameters(setter),
Compiler\MethodBodySynthesizer.cs (4)
176Debug.Assert(accessor.MethodKind == MethodKind.PropertyGet || accessor.MethodKind == MethodKind.PropertySet); 191if (accessor.MethodKind == MethodKind.PropertyGet) 197Debug.Assert(accessor.MethodKind == MethodKind.PropertySet);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
64if (MethodKind == MethodKind.StaticConstructor && (_lazyParameters.Length != 0) &&
Symbols\Source\SourceEventAccessorSymbol.cs (2)
118if (this.MethodKind == MethodKind.EventAdd) 127Debug.Assert(this.MethodKind == MethodKind.EventRemove);
Symbols\Source\SourceMemberContainerSymbol.cs (5)
2067if (conversion is { MethodKind: MethodKind.Conversion }) 2144if (method1.MethodKind == MethodKind.Constructor && 2160var methodKind = method1.MethodKind == MethodKind.Constructor ? MessageID.IDS_SK_CONSTRUCTOR : MessageID.IDS_SK_METHOD; 2168var methodName = (method1.MethodKind == MethodKind.Destructor && method2.MethodKind == MethodKind.Destructor) ?
Symbols\Source\SourceMemberMethodSymbol.cs (6)
340if (this.DeclaredAccessibility <= Accessibility.Private || MethodKind == MethodKind.ExplicitInterfaceImplementation) 345ErrorCode code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ? 356code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ? 1098if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) &&
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
61if (MethodKind == MethodKind.ExplicitInterfaceImplementation) 92if (MethodKind != MethodKind.ExplicitInterfaceImplementation) 198return MethodKind == MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
635Debug.Assert(this.MethodKind != MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this"); 680CheckModifiers(MethodKind == MethodKind.ExplicitInterfaceImplementation, _location, diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (10)
358if (MethodKind == MethodKind.PropertySet) 380if (this.MethodKind == MethodKind.PropertyGet) 484MethodKind == MethodKind.PropertyGet; 562else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet) 617MethodSymbol implementedAccessor = this.MethodKind == MethodKind.PropertyGet 646Debug.Assert(MethodKind == MethodKind.PropertySet); 677bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 761bool 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)
344if (MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
128if (accessor.MethodKind == MethodKind.EventAdd)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (2)
53return this.MethodKind == MethodKind.EventAdd 130BoundBlock body = CSharp.MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(fieldLikeEvent, isAddMethod: MethodKind == MethodKind.EventAdd, compilationState.Compilation, diagnostics);