Base:
property
MethodKind
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.MethodKind
42 references to MethodKind
Microsoft.CodeAnalysis.CSharp (42)
Binder\LocalBinderFactory.cs (1)
310SourcePropertyAccessorSymbol { 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);
FlowAnalysis\NullableWalker.cs (1)
1832Debug.Assert(getterNullResilienceData is null || symbol is SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertyGet });
Symbols\Source\SourceConstructorSymbolBase.cs (1)
65if (MethodKind == MethodKind.StaticConstructor && (_lazyParameters.Length != 0) &&
Symbols\Source\SourceEventAccessorSymbol.cs (4)
118if (this.MethodKind == MethodKind.EventAdd) 127Debug.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)
262return IsExtern && this.MethodKind == MethodKind.EventAdd
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2171if (method1.OriginalDefinition is SourceMemberMethodSymbol { MethodKind: MethodKind.Constructor } constructor &&
Symbols\Source\SourceMemberMethodSymbol.cs (6)
352if (this.DeclaredAccessibility <= Accessibility.Private || MethodKind == MethodKind.ExplicitInterfaceImplementation) 357ErrorCode code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ? 368code = (this.MethodKind == MethodKind.Conversion || this.MethodKind == MethodKind.UserDefinedOperator) ? 1058if ((!IsStatic || MethodKind is MethodKind.StaticConstructor) &&
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (4)
61if (MethodKind == MethodKind.ExplicitInterfaceImplementation) 92if (MethodKind != MethodKind.ExplicitInterfaceImplementation) 198return MethodKind == MethodKind.ExplicitInterfaceImplementation; 266if (this.GetIsNewExtensionMember() && MethodKind != MethodKind.Ordinary)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
645Debug.Assert(this.MethodKind != MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this"); 690CheckModifiers(MethodKind == MethodKind.ExplicitInterfaceImplementation, _location, diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (10)
359if (MethodKind == MethodKind.PropertySet) 381if (this.MethodKind == MethodKind.PropertyGet) 485MethodKind == MethodKind.PropertyGet; 567else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet) 622MethodSymbol implementedAccessor = this.MethodKind == MethodKind.PropertyGet 651Debug.Assert(MethodKind == MethodKind.PropertySet); 685bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 769bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 820? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 824? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (3)
348{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword), 349{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword), 350{ MethodKind: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword),
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
488if (MethodKind == MethodKind.ExplicitInterfaceImplementation)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
133if (accessor.MethodKind == MethodKind.EventAdd)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (2)
61return this.MethodKind == MethodKind.EventAdd 147BoundBlock body = CSharp.MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(fieldLikeEvent, isAddMethod: MethodKind == MethodKind.EventAdd, compilationState.Compilation, diagnostics);