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);
FlowAnalysis\NullableWalker.cs (1)
1817Debug.Assert(getterNullResilienceData is null || symbol is SourcePropertyAccessorSymbol { MethodKind: MethodKind.PropertyGet });
Symbols\Source\SourceConstructorSymbolBase.cs (1)
64if (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)
261return IsExtern && this.MethodKind == MethodKind.EventAdd
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2173if (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 (3)
61if (MethodKind == MethodKind.ExplicitInterfaceImplementation) 92if (MethodKind != MethodKind.ExplicitInterfaceImplementation) 198return MethodKind == MethodKind.ExplicitInterfaceImplementation;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
640Debug.Assert(this.MethodKind != MethodKind.UserDefinedOperator, "SourceUserDefinedOperatorSymbolBase overrides this"); 685CheckModifiers(MethodKind == MethodKind.ExplicitInterfaceImplementation, _location, diagnostics);
Symbols\Source\SourcePropertyAccessorSymbol.cs (10)
358if (MethodKind == MethodKind.PropertySet) 380if (this.MethodKind == MethodKind.PropertyGet) 484MethodKind == MethodKind.PropertyGet; 566else if (LocalDeclaredReadOnly && _isAutoPropertyAccessor && MethodKind == MethodKind.PropertySet) 621MethodSymbol implementedAccessor = this.MethodKind == MethodKind.PropertyGet 650Debug.Assert(MethodKind == MethodKind.PropertySet); 684bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 768bool isGetMethod = this.MethodKind == MethodKind.PropertyGet; 815? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 819? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbolBase.cs (3)
347{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword), 348{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword), 349{ 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)
60return this.MethodKind == MethodKind.EventAdd 146BoundBlock body = CSharp.MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(fieldLikeEvent, isAddMethod: MethodKind == MethodKind.EventAdd, compilationState.Compilation, diagnostics);