10 overrides of ParameterCount
Microsoft.CodeAnalysis.CSharp (10)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
102
internal override int
ParameterCount
Symbols\ErrorMethodSymbol.cs (1)
138
internal override int
ParameterCount
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
634
internal override int
ParameterCount
Symbols\ReducedExtensionMethodSymbol.cs (1)
508
internal override int
ParameterCount
Symbols\Source\SourceConstructorSymbolBase.cs (1)
110
internal sealed override int
ParameterCount
Symbols\Source\SourceDestructorSymbol.cs (1)
99
internal override int
ParameterCount
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
159
internal sealed override int
ParameterCount
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
139
internal override int
ParameterCount
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
72
internal override int
ParameterCount
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
64
internal override int
ParameterCount
173 references to ParameterCount
Microsoft.CodeAnalysis.CSharp (173)
Binder\Binder.ValueChecks.cs (2)
415
var argumentsBuilder = ArrayBuilder<BoundExpression>.GetInstance(accessorForDefaultArguments.
ParameterCount
);
421
refKindsBuilderOpt = ArrayBuilder<RefKind>.GetInstance(accessorForDefaultArguments.
ParameterCount
);
Binder\Binder_Attributes.cs (2)
312
if (hasErrors || attributeConstructor.
ParameterCount
== 0)
326
Debug.Assert(rewrittenArguments.Length == attributeConstructor.
ParameterCount
);
Binder\Binder_Await.cs (2)
481
if (method.
ParameterCount
!= 0)
483
var parameter = method.Parameters[method.
ParameterCount
- 1];
Binder\Binder_Conversions.cs (6)
600
ParameterCount
: 1,
632
ParameterCount
: 1,
665
ParameterCount
: 1,
2316
Debug.Assert(lambdaSymbol.
ParameterCount
== delegateParameters.Length);
2317
for (int p = 0; p < lambdaSymbol.
ParameterCount
; p++)
2375
if (lambdaParameter.IsParams && !delegateParameter.IsParams && p == lambdaSymbol.
ParameterCount
- 1)
Binder\Binder_Expressions.cs (2)
4987
if (baseParameter.Ordinal == resultMember.
ParameterCount
- 1)
10133
original.
ParameterCount
== 2 &&
Binder\Binder_Invocation.cs (1)
1971
if (!IsUnboundGeneric(m) && m.
ParameterCount
> 0)
Binder\Binder_Operators.cs (1)
1274
if (op.
ParameterCount
== 1 && op.DeclaredAccessibility == Accessibility.Public)
Binder\Binder_Patterns.cs (1)
1072
if (parameterIndex < deconstructMethod!.
ParameterCount
)
Binder\Binder_Statements.cs (3)
1339
!(patternMethodSymbol.
ParameterCount
== 0 || patternMethodSymbol.IsStatic && patternMethodSymbol.
ParameterCount
== 1))
3918
if (ctor.
ParameterCount
== 0)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1276
Debug.Assert(property.SetMethod.
ParameterCount
> 0);
Binder\DecisionDagBuilder.cs (1)
536
int count = Math.Min(method.
ParameterCount
- extensionExtra, recursive.Deconstruction.Length);
Binder\ForEachLoopBinder.cs (6)
1088
Debug.Assert(getEnumeratorMethod is null or {
ParameterCount
: 1 });
1206
var argsBuilder = ArrayBuilder<BoundExpression>.GetInstance(patternDisposeMethod.
ParameterCount
);
1402
if (method.
ParameterCount
== 0 || isAsync)
1899
Debug.Assert(resolvedMember is null or {
ParameterCount
: 0 });
1910
if (method.
ParameterCount
== 0)
1915
var argsBuilder = ArrayBuilder<BoundExpression>.GetInstance(method.
ParameterCount
);
Binder\InMethodBinder.cs (1)
198
if (_methodSymbol.
ParameterCount
== 0 || (options & LookupOptions.NamespaceAliasesOnly) != 0)
Binder\LockBinder.cs (1)
118
ParameterCount
: 0,
Binder\MethodArgumentInfo.cs (1)
36
Debug.Assert(method.
ParameterCount
== 0);
Binder\Semantics\Conversions\Conversions.cs (4)
107
ToConversion(resolution.OverloadResolutionResult, resolution.MethodGroup, methodSymbol.
ParameterCount
);
124
ToConversion(resolution.OverloadResolutionResult, resolution.MethodGroup, destination.Signature.
ParameterCount
);
395
var conversion = ToConversion(result, methodGroup, delegateType.DelegateInvokeMethod.
ParameterCount
);
479
Debug.Assert(method.
ParameterCount
== parameterCount + (methodGroup.IsExtensionMethodGroup ? 1 : 0));
Binder\Semantics\Conversions\ConversionsBase.cs (4)
1502
if (anonymousFunction.ParameterCount != invokeMethod.
ParameterCount
)
3384
if (sourceSig.
ParameterCount
!= destinationSig.
ParameterCount
||
3396
for (int i = 0; i < sourceSig.
ParameterCount
; i++)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (1)
262
if (op.ReturnsVoid || op.
ParameterCount
!= 1 || op.ReturnType.TypeKind == TypeKind.Error)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
292
if (op.ReturnsVoid || op.
ParameterCount
!= 1)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
964
if (op.
ParameterCount
!= 2 || op.ReturnsVoid)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
98
Debug.Assert(Method.
ParameterCount
== 2);
118
Debug.Assert(Method.
ParameterCount
== 2);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
520
if (op.
ParameterCount
!= 1 || op.ReturnsVoid)
Binder\Semantics\Operators\UnaryOperatorSignature.cs (1)
52
Debug.Assert(Method.
ParameterCount
== 1);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (9)
1865
else if (source.Type is FunctionPointerTypeSymbol { Signature: {
ParameterCount
: int sourceParameterCount } sourceSignature } &&
1866
target.Type is FunctionPointerTypeSymbol { Signature: {
ParameterCount
: int targetParameterCount } targetSignature } &&
2404
if (sourceSignature.
ParameterCount
!= targetSignature.
ParameterCount
)
2416
for (int i = 0; i < sourceSignature.
ParameterCount
; i++)
2754
if (sourceSignature.
ParameterCount
!= targetSignature.
ParameterCount
)
2766
for (int i = 0; i < sourceSignature.
ParameterCount
; i++)
3201
if ((method.
ParameterCount
< 1) || (arguments.Length < 1))
Binder\UsingStatementBinder.cs (1)
206
var argumentsBuilder = ArrayBuilder<BoundExpression>.GetInstance(disposeMethod.
ParameterCount
);
BoundTree\Constructors.cs (1)
190
if (i < method.
ParameterCount
)
BoundTree\NullabilityRewriter.cs (3)
177
Debug.Assert(lambda.
ParameterCount
== updatedLambda.
ParameterCount
);
178
for (int i = 0; i < lambda.
ParameterCount
; i++)
BoundTree\UnboundLambda.cs (1)
1103
int parameterCount = invoke.
ParameterCount
;
CodeGen\EmitExpression.cs (4)
3680
if (getMethod.
ParameterCount
== 1)
3686
Debug.Assert(getMethod.
ParameterCount
== 2);
3707
if (getField.
ParameterCount
== 1)
3713
Debug.Assert(getField.
ParameterCount
== 2);
CodeGen\Optimizer.cs (1)
952
((BoundObjectCreationExpression)right).Constructor.
ParameterCount
!= 0);
Compiler\AnonymousTypeMethodBodySynthesizer.cs (2)
31
int paramCount = this.
ParameterCount
;
53
for (int index = 0; index < this.
ParameterCount
; index++)
Compiler\MethodBodySynthesizer.cs (2)
90
Debug.Assert(submissionConstructor.
ParameterCount
== 1);
605
baseTypeMethod.
ParameterCount
== 0 &&
Compiler\MethodCompiler.cs (1)
1207
Debug.Assert(!(methodSymbol.IsImplicitInstanceConstructor && methodSymbol.
ParameterCount
== 0) ||
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (7)
402
if (sig.
ParameterCount
> 0)
404
var otherParamsBuilder = ArrayBuilder<TypeWithAnnotations>.GetInstance(sig.
ParameterCount
);
405
var otherParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.
ParameterCount
);
486
var key = new AnonymousDelegateWithIndexedNamePartialKey(delegateTemplate.Arity, delegateTemplate.DelegateInvokeMethod.
ParameterCount
);
919
if (sig.
ParameterCount
> 0)
921
var translatedParamsBuilder = ArrayBuilder<TypeWithAnnotations>.GetInstance(sig.
ParameterCount
);
922
var translatedParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.
ParameterCount
);
Emitter\Model\MethodReference.cs (1)
54
return (ushort)UnderlyingMethod.
ParameterCount
;
Emitter\Model\MethodSymbolAdapter.cs (1)
150
return (ushort)AdaptedMethodSymbol.
ParameterCount
;
Emitter\Model\PEModuleBuilder.cs (1)
1223
int ordinal = methodSymbol.
ParameterCount
;
FlowAnalysis\AbstractFlowPass.cs (1)
3013
Debug.Assert(method.
ParameterCount
is 1);
FlowAnalysis\NullableWalker.cs (13)
3998
else if (constructor?.
ParameterCount
== 1)
4840
if (methodOpt?.
ParameterCount
== 2)
5090
method?.
ParameterCount
== 2)
6308
var parameterCount = method.
ParameterCount
;
8677
targetInvokeMethod.
ParameterCount
!= sourceMethod.
ParameterCount
)
9380
Debug.Assert(method.
ParameterCount
== 1);
10426
MethodSymbol? incrementOperator = (node.OperatorKind.IsUserDefined() && node.MethodOpt?.
ParameterCount
== 1) ? node.MethodOpt : null;
10433
if (node.OperandConversion is BoundConversion { Conversion: var operandConversion } && operandConversion.IsUserDefined && operandConversion.Method?.
ParameterCount
== 1)
11256
method.
ParameterCount
== 1)
11345
if ((object)node.LogicalOperator != null && node.LogicalOperator.
ParameterCount
== 2)
11371
if (binary.LogicalOperator != null && binary.LogicalOperator.
ParameterCount
== 2)
11377
if ((object)trueFalseOperator != null && trueFalseOperator.
ParameterCount
!= 1)
FlowAnalysis\NullableWalker_Patterns.cs (1)
449
for (int i = 0; i < method.
ParameterCount
- extensionExtra; i++)
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
486
method.
ParameterCount
== 0 &&
Lowering\DiagnosticsPass_Warnings.cs (1)
237
if (method.
ParameterCount
!= arguments.Length ||
Lowering\Extensions.cs (2)
54
return creation.Constructor.
ParameterCount
!= 0;
100
return creation.Constructor.
ParameterCount
== 0;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
303
var prologueBuilder = ArrayBuilder<BoundStatement>.GetInstance(_factory.CurrentFunction.
ParameterCount
);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
185
for (int i = extensionExtra; i < method.
ParameterCount
; i++)
242
Debug.Assert(e.Property.GetMethod.
ParameterCount
== 1);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
881
else if (asSpanMethod is MethodSymbol { IsStatic: true,
ParameterCount
: 1 })
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
1344
Debug.Assert(conversion.Method is { } && !conversion.Method.ReturnsVoid && conversion.Method.
ParameterCount
== 1);
1505
Debug.Assert(method.
ParameterCount
== 1);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
126
enterMethod.
ParameterCount
== 2)
201
Debug.Assert(enterMethod.
ParameterCount
== 1);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
184
Debug.Assert(withExpr.CloneMethod.
ParameterCount
== 0);
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
94
Debug.Assert(getMethod.
ParameterCount
== rewrittenArguments.Length);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
633
Debug.Assert(node.MethodOpt.
ParameterCount
== 1);
Lowering\SyntheticBoundNodeFactory.cs (5)
733
var ctor = type.InstanceConstructors.Single(c => c.
ParameterCount
== args.Length);
742
var ctor = type.InstanceConstructors.Single(c => c.
ParameterCount
== args.Length);
849
Debug.Assert(method.
ParameterCount
== args.Length);
886
Debug.Assert(method.
ParameterCount
== args.Length);
1188
var ctor = baseType.InstanceConstructors.Single(c => c.
ParameterCount
== 0);
Operations\CSharpOperationFactory.cs (1)
2945
if (patternDisposeInfo.Method.
ParameterCount
== 0)
Symbols\Attributes\SourceAttributeData.cs (2)
132
Debug.Assert(parameterIndex < this.AttributeConstructor.
ParameterCount
);
140
Debug.Assert(this.AttributeConstructor.
ParameterCount
<= attributeSyntax.ArgumentList.Arguments.Count);
Symbols\ConstraintsHelper.cs (1)
1494
if (constructor.
ParameterCount
== 0)
Symbols\MemberSymbolExtensions.cs (3)
103
return ((MethodSymbol)member).
ParameterCount
;
417
if (constructor.
ParameterCount
!= 0)
440
return method.MethodKind == MethodKind.Constructor && method.
ParameterCount
== 0;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (2)
361
if (sig.
ParameterCount
> 0)
364
var paramsBuilder = ArrayBuilder<TypeWithAnnotations>.GetInstance(sig.
ParameterCount
);
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
220
if (candidateMethod.
ParameterCount
!= numParams)
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (2)
183
if (type.Signature.
ParameterCount
> 0)
185
var builder = ArrayBuilder<TypeWithAnnotations>.GetInstance(type.Signature.
ParameterCount
);
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
214
if (type.Signature.
ParameterCount
> 0)
216
var paramsBuilder = ArrayBuilder<TypeWithAnnotations>.GetInstance(type.Signature.
ParameterCount
);
218
for (int i = type.Signature.
ParameterCount
- 1; i >= 0; i--)
Symbols\MethodSymbol.cs (1)
1230
int IMethodSymbolInternal.ParameterCount =>
ParameterCount
;
Symbols\MethodSymbolExtensions.cs (3)
18
return method.
ParameterCount
!= 0 && method.Parameters[method.
ParameterCount
- 1].IsParams;
46
method.
ParameterCount
!= 0 || method.Arity != 0 || !method.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges))
Symbols\NativeIntegerTypeSymbol.cs (1)
114
if (underlyingMethod.
ParameterCount
== 0)
Symbols\ReducedExtensionMethodSymbol.cs (5)
40
Debug.Assert(method.
ParameterCount
> 0);
97
Debug.Assert(reducedFrom.
ParameterCount
> 0);
117
Debug.Assert(method.
ParameterCount
> 0);
148
var paramCount = method.
ParameterCount
;
510
get { return _reducedFrom.
ParameterCount
- 1; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
769
var paramCount = signature.
ParameterCount
;
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
364
int paramCount = invoke.
ParameterCount
;
Symbols\Source\SourceMemberContainerSymbol.cs (8)
2150
Debug.Assert(method1.
ParameterCount
== method2.
ParameterCount
);
2152
for (int i = 0; i < method1.
ParameterCount
; i++)
2552
if (op1.
ParameterCount
!= op2.
ParameterCount
)
2557
for (int p = 0; p < op1.
ParameterCount
; ++p)
4102
if (m.MethodKind == MethodKind.Constructor && m.
ParameterCount
== 0)
4808
hasParameterlessInstanceConstructor = hasParameterlessInstanceConstructor || method.
ParameterCount
== 0;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (6)
1261
Debug.Assert(baseMethod.
ParameterCount
== overrideMethod.
ParameterCount
- overrideParameterOffset);
1452
Debug.Assert(baseMethod.
ParameterCount
== overrideMethod.
ParameterCount
- overrideParameterOffset);
1503
Debug.Assert(baseMethod.
ParameterCount
== overrideMethod.
ParameterCount
- overrideParameterOffset);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
960
if (!IsStatic ||
ParameterCount
> 0 || !ReturnsVoid || IsAbstract || IsVirtual)
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (2)
124
if (ctor.
ParameterCount
== 1 && ctor.Parameters[0].RefKind == RefKind.None &&
164
ParameterCount
: 0,
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
146
return member is MethodSymbol { IsStatic: false,
ParameterCount
: 1, Arity: 0 } method &&
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
45
if (member is MethodSymbol candidate && candidate.
ParameterCount
== 1 && candidate.Parameters[0].RefKind == RefKind.None &&
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (6)
346
Debug.Assert(userMain.
ParameterCount
== 0 || userMain.
ParameterCount
== 1);
477
Debug.Assert(ctor.
ParameterCount
== 0);
480
Debug.Assert(initializer.
ParameterCount
== 0);
568
Debug.Assert(ctor.
ParameterCount
== 1);
571
Debug.Assert(initializer.
ParameterCount
== 0);
Symbols\TypeSymbolExtensions.cs (4)
955
if (currentPointer.
ParameterCount
== 0)
977
for (i = 0; i < currentPointer.
ParameterCount
- 1; i++)
2049
if (funcPtrType.Signature.
ParameterCount
> 0)
2051
var paramsBuilder = ArrayBuilder<TypeWithAnnotations>.GetInstance(funcPtrType.Signature.
ParameterCount
);
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
66
get { return UnderlyingMethod.
ParameterCount
; }