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