24 overrides of MethodKind
Microsoft.CodeAnalysis.CSharp (24)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
70public override MethodKind MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
43public override MethodKind MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
28public override MethodKind MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
32public override MethodKind MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
29public override MethodKind MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
32public override MethodKind MethodKind
Symbols\ErrorMethodSymbol.cs (1)
199public override MethodKind MethodKind
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
772public override MethodKind MethodKind => MethodKind.FunctionPointerSignature;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1099public override MethodKind MethodKind
Symbols\ReducedExtensionMethodSymbol.cs (1)
467public override MethodKind MethodKind
Symbols\SignatureOnlyMethodSymbol.cs (1)
93public override MethodKind MethodKind { get { return _methodKind; } }
Symbols\Source\LambdaSymbol.cs (1)
75public override MethodKind MethodKind
Symbols\Source\LocalFunctionSymbol.cs (1)
326public override MethodKind MethodKind => MethodKind.LocalFunction;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
526public sealed override MethodKind MethodKind
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
93public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
151public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
244public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
138public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
188public sealed override MethodKind MethodKind
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
129public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
66public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
133public override MethodKind MethodKind
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
189public override MethodKind MethodKind
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
280public override MethodKind MethodKind
205 references to MethodKind
Microsoft.CodeAnalysis.CSharp (205)
Binder\Binder.ValueChecks.cs (3)
1428canModifyReadonly = (containingMethod.MethodKind == desiredMethodKind) || 1889if (method.MethodKind == MethodKind.Constructor || method.IsInitOnly) 2506if (method.MethodKind == MethodKind.Constructor)
Binder\Binder_Await.cs (1)
175if (method.MethodKind == MethodKind.AnonymousFunction)
Binder\Binder_Conversions.cs (2)
2657Debug.Assert(memberSymbol is not MethodSymbol { MethodKind: not MethodKind.Constructor } || 2662if (receiverOpt != null || memberSymbol is not MethodSymbol { MethodKind: MethodKind.Constructor })
Binder\Binder_Crefs.cs (1)
776MethodKind candidateMethodKind = candidateMethod.MethodKind;
Binder\Binder_Expressions.cs (8)
1944return (containingMethod.MethodKind == MethodKind.AnonymousFunction || containingMethod.MethodKind == MethodKind.LocalFunction) && !IsInsideNameof; // false in EE evaluation method 2082(this.ContainingMember() is MethodSymbol { MethodKind: MethodKind.Constructor } containingMember && (object)containingMember != primaryCtor)) && // We are in a non-primary instance constructor 2137this.ContainingMemberOrLambda is MethodSymbol { MethodKind: MethodKind.AnonymousFunction or MethodKind.LocalFunction } && 4772Debug.Assert(constructor.MethodKind == MethodKind.Constructor || 4773constructor.MethodKind == MethodKind.StaticConstructor); // error scenario: constructor initializer on static constructor 6581Debug.Assert(constructor.MethodKind == MethodKind.Constructor || constructor.MethodKind == MethodKind.StaticConstructor);
Binder\Binder_Invocation.cs (2)
798if (result is null && finalApplicableCandidates[0].LeastOverriddenMember.MethodKind != MethodKind.LocalFunction) 889if (singleCandidate.MethodKind != MethodKind.LocalFunction)
Binder\Binder_Statements.cs (2)
1797return (member as MethodSymbol)?.MethodKind == (isStatic ? 3807if (constructor.MethodKind != MethodKind.Constructor || constructor.IsExtern)
Binder\InMethodBinder.cs (3)
87internal override bool IsNestedFunctionBinder => _methodSymbol.MethodKind == MethodKind.LocalFunction; 272if (((MethodSymbol)newSymbol).MethodKind == MethodKind.LocalFunction) 300if (((MethodSymbol)newSymbol).MethodKind == MethodKind.LocalFunction)
Binder\LockBinder.cs (1)
122MethodKind: MethodKind.Ordinary,
Binder\Semantics\AccessCheck.cs (1)
196case SymbolKind.Method when ((MethodSymbol)symbol).MethodKind == MethodKind.LocalFunction:
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
512Debug.Assert(firstSupported.Member is MethodSymbol { MethodKind: MethodKind.Constructor });
BoundTree\BoundNodeExtensions.cs (1)
62return method.MethodKind == MethodKind.Constructor &&
CodeGen\CodeGenerator_HasHome.cs (2)
252return containingSymbol is MethodSymbol { MethodKind: MethodKind.StaticConstructor } or FieldSymbol { IsStatic: true }; 256return (containingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor } or FieldSymbol { IsStatic: false } or MethodSymbol { IsInitOnly: true }) &&
CodeGen\EmitExpression.cs (1)
2186if (method.IsEffectivelyReadOnly && method.MethodKind != MethodKind.Constructor)
Compilation\CSharpCompilation.cs (1)
3058if (symbol.Kind == SymbolKind.Method && symbol.IsImplicitlyDeclared && ((MethodSymbol)symbol).MethodKind == MethodKind.Constructor)
Compilation\CSharpSemanticModel.cs (2)
1784case MethodSymbol { MethodKind: MethodKind.LambdaMethod }: 4789if (call.InvokedAsExtensionMethod && method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension)
Compilation\MemberSemanticModel.cs (1)
2342Debug.Assert(symbol is LocalSymbol or ParameterSymbol or MethodSymbol { MethodKind: MethodKind.LambdaMethod });
Compilation\MethodBodySemanticModel.cs (1)
240if (MemberSymbol is MethodSymbol methodSymbol && methodSymbol.MethodKind == MethodKind.Constructor &&
Compilation\SyntaxTreeSemanticModel.cs (1)
2386Debug.Assert(symbol is LocalSymbol or ParameterSymbol or MethodSymbol { MethodKind: MethodKind.LambdaMethod });
Compiler\ClsComplianceChecker.cs (1)
736if (method.MethodKind == MethodKind.DelegateInvoke)
Compiler\MethodBodySynthesizer.cs (1)
532Debug.Assert(method.MethodKind == MethodKind.Destructor);
Compiler\MethodCompiler.cs (7)
533(method.MethodKind == MethodKind.Constructor || method.IsScriptInitializer) ? processedInstanceInitializers : 534method.MethodKind == MethodKind.StaticConstructor ? processedStaticInitializers : 1075if ((methodSymbol.MethodKind == MethodKind.Constructor || methodSymbol.MethodKind == MethodKind.StaticConstructor) && 1760if (method.MethodKind == MethodKind.StaticConstructor && 1936if (method.MethodKind == MethodKind.Destructor && body != null) 2338if (method.MethodKind == MethodKind.Constructor && !method.IsExtern)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
116if (symbol.MethodKind == MethodKind.Conversion)
Emitter\Model\MethodSymbolAdapter.cs (5)
388return AdaptedMethodSymbol.MethodKind == MethodKind.Constructor; 637return this.MethodKind == MethodKind.Constructor 638|| this.MethodKind == MethodKind.StaticConstructor; 647Debug.Assert(this.MethodKind != MethodKind.Destructor); 651!(this.IsVirtual || this.IsOverride || this.IsAbstract || this.MethodKind == MethodKind.Destructor));
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
358else if (method.MethodKind == MethodKind.Destructor && AdaptedNamedTypeSymbol.SpecialType != SpecialType.System_Object) 369if ((object)objectMethod != null && objectMethod.MethodKind == MethodKind.Destructor) 631if ((alwaysIncludeConstructors && method.MethodKind == MethodKind.Constructor) || method.GetCciAdapter().ShouldInclude(context))
FlowAnalysis\AbstractFlowPass.cs (2)
1421if (method is null || method.MethodKind != MethodKind.Constructor) 1518Debug.Assert(method?.OriginalDefinition.MethodKind != MethodKind.LocalFunction);
FlowAnalysis\DefiniteAssignment.cs (6)
102&& CurrentSymbol is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }; 1258Debug.Assert(CurrentSymbol is MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }); 1311if (CurrentSymbol is not MethodSymbol { MethodKind: MethodKind.Constructor, ContainingType.TypeKind: TypeKind.Struct }) 2371(currentMethod.MethodKind == MethodKind.AnonymousFunction || 2372currentMethod.MethodKind == MethodKind.LocalFunction) && 2414if (method.MethodKind == MethodKind.LocalFunction)
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
163((MethodSymbol)symbol).MethodKind == MethodKind.LocalFunction)
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
36SymbolKind.Method when symbol is MethodSymbol m && m.MethodKind == MethodKind.LocalFunction => true,
FlowAnalysis\FlowAnalysisPass.cs (2)
76Debug.Assert(method.MethodKind != MethodKind.AnonymousFunction); 113Debug.Assert(method.MethodKind == MethodKind.Constructor);
FlowAnalysis\NullableWalker.cs (5)
466Debug.Assert(baseOrThisInitializer is null or { MethodKind: MethodKind.Constructor }); 1461return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } } 2132while (enclosingMemberMethod?.MethodKind is MethodKind.AnonymousFunction or MethodKind.LocalFunction) 6313|| method.MethodKind != MethodKind.Ordinary 8180if (((MethodSymbol)symbol).MethodKind == MethodKind.LocalFunction)
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
460if (node.Method.MethodKind == MethodKind.LocalFunction) 471if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction)
Lowering\ClosureConversion\ClosureConversion.cs (10)
189_seenBaseCall = method.MethodKind != MethodKind.Constructor; // only used for ctors 203(localOrParameter as MethodSymbol)?.MethodKind == MethodKind.LocalFunction); 435originalMethod.MethodKind == MethodKind.LambdaMethod && 789if (_currentMethod.MethodKind == MethodKind.Constructor && 858var loweredSymbol = (node.Method.MethodKind is MethodKind.LambdaMethod or MethodKind.LocalFunction) ? 876Debug.Assert(localFunc.MethodKind == MethodKind.LocalFunction); 1071if (node.Method.MethodKind == MethodKind.LocalFunction) 1338if (node.MethodOpt?.MethodKind == MethodKind.LocalFunction) 1364if (node.TargetMethod.MethodKind == MethodKind.LocalFunction) 1673_currentMethod.MethodKind != MethodKind.StaticConstructor &&
Lowering\DiagnosticsPass_ExpressionTrees.cs (4)
197var diagnostic = _staticLocalOrAnonymousFunction.MethodKind == MethodKind.LocalFunction 212var diagnostic = _staticLocalOrAnonymousFunction.MethodKind == MethodKind.LocalFunction 343else if (method.MethodKind == MethodKind.LocalFunction) 880if ((node.LookupSymbolOpt as MethodSymbol)?.MethodKind == MethodKind.LocalFunction)
Lowering\DiagnosticsPass_Warnings.cs (1)
368if ((object)op == null || op.MethodKind != MethodKind.UserDefinedOperator) continue;
Lowering\InitializerRewriter.cs (2)
22Debug.Assert((method.MethodKind == MethodKind.Constructor) || (method.MethodKind == MethodKind.StaticConstructor));
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (2)
143Debug.Assert(method.MethodKind != MethodKind.LocalFunction && method.MethodKind != MethodKind.AnonymousFunction);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (4)
50if (method.MethodKind is not (MethodKind.Constructor or MethodKind.StaticConstructor) && 156if (method.MethodKind is not (MethodKind.Ordinary or MethodKind.Constructor)) 188methodDefinition.MethodKind == overload.MethodKind &&
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
40if (method.MethodKind is not (MethodKind.Constructor or MethodKind.StaticConstructor) &&
Lowering\LocalRewriter\DelegateCacheRewriter.cs (2)
129if (targetMethod.MethodKind == MethodKind.LocalFunction) 161Debug.Assert(targetMethod.MethodKind == MethodKind.Ordinary);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (3)
155node.Method.MethodKind == MethodKind.LocalFunction || 216if (conversion.Method.MethodKind == MethodKind.LocalFunction) 240node.MethodOpt?.MethodKind == MethodKind.LocalFunction;
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
181if (method.MethodKind is not MethodKind.Ordinary) 665var requiresInstanceReceiver = methodOrIndexer.RequiresInstanceReceiver() && methodOrIndexer is not MethodSymbol { MethodKind: MethodKind.Constructor } and not FunctionPointerMethodSymbol;
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
922if (asSpanMethod is MethodSymbol { MethodKind: MethodKind.Constructor } constructor)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
582&& _factory.TopLevelMethod.MethodKind != MethodKind.StaticConstructor // Avoid caching twice if people do it manually.
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
72if ((curMethod.MethodKind != MethodKind.SharedConstructor ||
Lowering\LocalRewriter\LocalRewriter_Range.cs (2)
165switch (constructionMethod.MethodKind) 198throw ExceptionUtilities.UnexpectedValue(constructionMethod.MethodKind);
Lowering\SyntheticBoundNodeFactory.cs (4)
72value.MethodKind != MethodKind.AnonymousFunction && 73value.MethodKind != MethodKind.LocalFunction) 141CurrentFunction.MethodKind == MethodKind.AnonymousFunction || 142CurrentFunction.MethodKind == MethodKind.LocalFunction ||
Symbols\Compilation_WellKnownMembers.cs (1)
306MethodKind methodKind = method.MethodKind;
Symbols\MemberSymbolExtensions.cs (6)
173return methodSymbol.MethodKind == MethodKind.UserDefinedOperator || methodSymbol.MethodKind == MethodKind.Conversion; 193return symbol.Kind == SymbolKind.Method && ((MethodSymbol)symbol).MethodKind == MethodKind.Conversion; 360switch (method.MethodKind) 375if ((object)method != null && method.MethodKind == MethodKind.Constructor) 440return method.MethodKind == MethodKind.Constructor && method.ParameterCount == 0;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
885case "" when !ContainingSymbol.RequiresInstanceReceiver() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke }:
Symbols\MethodSymbol.cs (10)
369protected bool IsValidReadOnlyTarget => !IsStatic && ContainingType.IsStructType() && MethodKind != MethodKind.Constructor && !IsInitOnly; 589internal bool HasSetsRequiredMembers => MethodKind == MethodKind.Constructor && HasSetsRequiredMembersImpl; 655return MethodKind == MethodKind.Constructor && ContainingType.IsScriptClass; 671return ((MethodKind == MethodKind.Constructor || MethodKind == MethodKind.StaticConstructor) && IsImplicitlyDeclared); 682return MethodKind == MethodKind.Constructor && IsImplicitlyDeclared; 757if (!this.IsExtensionMethod || this.MethodKind == MethodKind.ReducedExtension || receiverType.IsVoidType()) 772return (this.IsExtensionMethod && this.MethodKind != MethodKind.ReducedExtension) ? ReducedExtensionMethodSymbol.Create(this) : null; 1040if (!IsStatic || IsAbstract || IsVirtual || MethodKind is not (MethodKind.Ordinary or MethodKind.LocalFunction)) 1200MethodKind is MethodKind.Ordinary
Symbols\MethodSymbolExtensions.cs (5)
24return method.IsImplicitlyDeclared && method.MethodKind == MethodKind.AnonymousFunction; 53if (!skipFirstMethodKindCheck && method.MethodKind == MethodKind.Destructor) 100if (hiddenMethod.MethodKind == MethodKind.Destructor) 126switch (method.MethodKind) 221method.MethodKind is (MethodKind.Ordinary or MethodKind.ExplicitInterfaceImplementation or MethodKind.PropertyGet or MethodKind.PropertySet) &&
Symbols\NamedTypeSymbol.cs (4)
220if (candidate is MethodSymbol { MethodKind: MethodKind.UserDefinedOperator or MethodKind.Conversion } method) 283Debug.Assert(method.MethodKind == MethodKind.Constructor); 291Debug.Assert(method.MethodKind == MethodKind.StaticConstructor); 370Debug.Assert(method.MethodKind != MethodKind.ReducedExtension);
Symbols\NativeIntegerTypeSymbol.cs (1)
94switch (underlyingMethod.MethodKind)
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
246bool accessorIsGetter = accessor.MethodKind == MethodKind.PropertyGet; 338bool accessorIsAdder = accessor.MethodKind == MethodKind.EventAdd; 881return MethodSymbol.CanOverrideOrHide(methodSymbol.MethodKind) && ReferenceEquals(methodSymbol, methodSymbol.ConstructedFrom);
Symbols\PublicModel\MethodSymbol.cs (2)
37switch (_underlying.MethodKind) 74throw ExceptionUtilities.UnexpectedValue(_underlying.MethodKind);
Symbols\ReducedExtensionMethodSymbol.cs (3)
39Debug.Assert(method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension); 74Debug.Assert(method.IsExtensionMethod && method.MethodKind != MethodKind.ReducedExtension); 116Debug.Assert(method.MethodKind != MethodKind.ReducedExtension);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1018method.MethodKind,
Symbols\Source\ExplicitInterfaceHelpers.cs (2)
97if (method.MethodKind != MethodKind.ExplicitInterfaceImplementation) 263(interfaceMethod.MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion) != isOperator)
Symbols\Source\ParameterHelpers.cs (3)
211Debug.Assert(methodOwner?.MethodKind != MethodKind.LambdaMethod); 213methodOwner?.MethodKind == MethodKind.LocalFunction; 912if (method.MethodKind != MethodKind.AnonymousFunction)
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1345if (!ContainingSymbol.RequiresInstanceReceiver() || ContainingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor or MethodKind.DelegateInvoke or MethodKind.LambdaMethod })
Symbols\Source\SourceMemberContainerSymbol.cs (10)
2448if (member.Kind != SymbolKind.Method || ((MethodSymbol)member).MethodKind != MethodKind.Destructor) 3865if ((methodSymbol.MethodKind == MethodKind.Ordinary) && 3901if ((methodSymbol.MethodKind == MethodKind.Ordinary) && 4054switch (meth.MethodKind) 4077throw ExceptionUtilities.UnexpectedValue(meth.MethodKind); 4102if (m.MethodKind == MethodKind.Constructor && m.ParameterCount == 0) 4144if (hasInitializers && !builder.NonTypeMembers.Any(member => member is MethodSymbol { MethodKind: MethodKind.Constructor })) 4196case MethodSymbol { MethodKind: not (MethodKind.Ordinary or MethodKind.Constructor) }: 4800switch (method.MethodKind) 5411if (member is MethodSymbol { MethodKind: MethodKind.Ordinary })
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
536if (MethodSymbol.CanOverrideOrHide(method.MethodKind) && !method.IsAccessor()) 552else if (method.MethodKind == MethodKind.Destructor) 891!(overridingMemberIsMethod && ((MethodSymbol)overriddenMember).MethodKind == MethodKind.Destructor)) //destructors are metadata virtual
Symbols\Source\SourceMethodSymbolWithAttributes.cs (12)
154switch (MethodKind) 729else if (!this.CanBeReferencedByName || this.MethodKind == MethodKind.Destructor) 744else if (this is { MethodKind: MethodKind.LocalFunction, IsStatic: false }) 942if (MethodKind != MethodKind.Ordinary) 1040if (MethodKind != MethodKind.Ordinary) 1197if (MethodKind != MethodKind.Ordinary) 1471switch (this.MethodKind) 1501var errorCode = (this.MethodKind == MethodKind.Constructor || this.MethodKind == MethodKind.StaticConstructor) ? 1553if (this.MethodKind != MethodKind.LambdaMethod) 1655switch (this.MethodKind) 1737if (this.ContainingType.IsComImport && this.MethodKind == MethodKind.Constructor)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1800&& !GetMembers().All(m => m is not MethodSymbol { MethodKind: MethodKind.Constructor, ObsoleteKind: ObsoleteAttributeKind.None } method
Symbols\Source\SourcePropertySymbolBase.cs (1)
1181Debug.Assert(thisAccessor.MethodKind == MethodKind.PropertySet);
Symbols\Source\ThisParameterSymbol.cs (1)
152if (_containingMethod?.MethodKind == MethodKind.Constructor)
Symbols\Symbol.cs (3)
667switch (method.MethodKind) 728switch (method.MethodKind) 1238this is MethodSymbol method && method.MethodKind == MethodKind.FunctionPointerSignature ?
Symbols\Symbol_Attributes.cs (2)
56switch (method.MethodKind) 673Debug.Assert(!binder.InAttributeArgument || this is MethodSymbol { MethodKind: MethodKind.LambdaMethod or MethodKind.LocalFunction }, "Possible cycle in attribute binding");
Symbols\SymbolExtensions.cs (5)
150if (method.MethodKind != MethodKind.AnonymousFunction && method.MethodKind != MethodKind.LocalFunction) break; 170if (method.MethodKind == MethodKind.AnonymousFunction || method.MethodKind == MethodKind.LocalFunction) 828=> method is { MethodKind: MethodKind.Constructor, HasSetsRequiredMembers: false };
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
135if (member is MethodSymbol { ContainingType.IsRecord: true, MethodKind: MethodKind.Constructor } method)
Symbols\Synthesized\SynthesizedExplicitImplementationForwardingMethod.cs (1)
43_implementingMethod.MethodKind :
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
137return _overriddenAccessor.MethodKind;
Symbols\TypeMap.cs (2)
193stopAt?.MethodKind == MethodKind.StaticConstructor || 194stopAt?.MethodKind == MethodKind.Constructor);
Symbols\TypeSymbol.cs (6)
1561switch (interfaceMethod.MethodKind) 1576throw ExceptionUtilities.UnexpectedValue(interfaceMethod.MethodKind); 1602interfaceMethod.MethodKind, 1696else if (implicitImplMethod.IsStatic && implicitImplMethod.MethodKind == MethodKind.Ordinary && implicitImplMethod.GetUnmanagedCallersOnlyAttributeData(forceComplete: true) is not null) 2173isOperator = interfaceMethod.MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion; 2181(((MethodSymbol)member).MethodKind is MethodKind.UserDefinedOperator or MethodKind.Conversion) != isOperator.GetValueOrDefault())
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
284return UnderlyingMethod.MethodKind;