20 overrides of Arity
Microsoft.CodeAnalysis.CSharp (20)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
75
public override int
Arity
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
36
public sealed override int
Arity
Symbols\ErrorMethodSymbol.cs (1)
194
public override int
Arity
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
819
public override int
Arity
=> 0;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
531
public override int
Arity
Symbols\ReducedExtensionMethodSymbol.cs (1)
301
public override int
Arity
Symbols\SignatureOnlyMethodSymbol.cs (1)
69
public override int
Arity
{ get { return _typeParameters.Length; } }
Symbols\Source\LambdaSymbol.cs (1)
197
public override int
Arity
Symbols\Source\LocalFunctionSymbol.cs (1)
308
public override int
Arity
=> TypeParameters.Length;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
806
public sealed override int
Arity
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
98
public override int
Arity
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
135
public override int
Arity
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
234
public override int
Arity
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
59
public sealed override int
Arity
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
178
public sealed override int
Arity
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
44
public override int
Arity
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
113
public override int
Arity
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
141
public override int
Arity
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
173
public override int
Arity
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
48
public override int
Arity
59 references to Arity
Microsoft.CodeAnalysis.CSharp (59)
Binder\Binder_Conversions.cs (4)
601
Arity
: 0,
633
Arity
: 1,
666
Arity
: 0,
1871
if (method.
Arity
!= allTypeArguments.Length)
Binder\Binder_Crefs.cs (3)
649
if (((MethodSymbol)s).
Arity
== 0)
667
s.Kind != SymbolKind.Method || ((MethodSymbol)s).
Arity
== 0);
782
: (arity == 0 ? candidateMethod.
Arity
: arity);
Binder\Binder_Expressions.cs (2)
10581
if (method.
Arity
!= n)
10645
if (memberMethod.
Arity
!= arity)
Binder\Binder_Invocation.cs (1)
1930
constructedMethods.Add(m.ConstructedFrom == m && m.
Arity
== typeArgumentsWithAnnotations.Length ? m.Construct(typeArgumentsWithAnnotations) : m);
Binder\Binder_Lookup.cs (3)
1796
if (method.
Arity
!= arity)
1798
if (method.
Arity
== 0)
1806
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadArity, method, MessageID.IDS_SK_METHOD.Localize(), method.
Arity
) : null;
Binder\LockBinder.cs (1)
119
Arity
: 0,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
3197
Debug.Assert(method.
Arity
> 0);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
796
if (method.
Arity
== 0 || method.OriginalDefinition == (object)method)
4188
member.Kind == SymbolKind.Method && (method = (MethodSymbol)(Symbol)member).
Arity
> 0)
Compilation\CSharpSemanticModel.cs (1)
4671
if (!typeArguments.IsDefaultOrEmpty && method.
Arity
== typeArguments.Length)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
600
if (methodSymbol.
Arity
> 0)
Compiler\MethodBodySynthesizer.cs (1)
606
baseTypeMethod.
Arity
== 0 && // NOTE: the native compiler doesn't check this, so it broken IL.
Compiler\MethodBodySynthesizer.Lowered.cs (1)
328
Debug.Assert(this.Arity == methodBeingWrapped.
Arity
);
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (2)
105
if (symbol.
Arity
!= 0)
108
builder.Append(symbol.
Arity
);
Emitter\Model\MethodReference.cs (1)
46
return (ushort)UnderlyingMethod.
Arity
;
Emitter\Model\MethodSymbolAdapter.cs (1)
142
return (ushort)AdaptedMethodSymbol.
Arity
;
Lowering\ClosureConversion\ClosureConversion.cs (3)
1023
Debug.Assert((typeArgumentsOpt.IsDefault && !originalMethod.IsGenericMethod) || (typeArgumentsOpt.Length == originalMethod.
Arity
));
1024
var totalTypeArgumentCount = (containerAsFrame?.Arity ?? 0) + synthesizedMethod.
Arity
;
1025
var realTypeArguments = ImmutableArray.Create(_currentTypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)), 0, totalTypeArgumentCount - originalMethod.
Arity
);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (4)
187
overload.
Arity
== methodDefinition.
Arity
&&
193
var typeMap = (methodDefinition.
Arity
> 0) ? new TypeMap(overload.TypeParameters, methodDefinition.TypeParameters) : null;
216
return (result.
Arity
> 0) ? result.Construct(method.TypeArgumentsWithAnnotations) : result;
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
34
Debug.Assert(ownerMethod.
Arity
> 0);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
144
if (enclosingMethod.
Arity
> 0)
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
154
if (interceptor.
Arity
!= 0)
167
else if (interceptor.
Arity
!= netArity)
Lowering\MethodToClassRewriter.cs (1)
334
Debug.Assert(typeArgs.Length == newMethod.
Arity
);
Lowering\SyntheticBoundNodeFactory.cs (1)
812
Debug.Assert(methodSymbol.
Arity
== typeArgs.Length);
Symbols\Compilation_WellKnownMembers.cs (1)
314
if (method.
Arity
!= descriptor.Arity || methodKind != targetMethodKind ||
Symbols\ExtendedErrorTypeSymbol.cs (1)
320
return ((MethodSymbol)symbol).
Arity
;
Symbols\MemberSymbolExtensions.cs (1)
294
return ((MethodSymbol)symbol).
Arity
;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (2)
204
(targetMemberTypeParamCount == method.
Arity
) &&
229
IndexedTypeParameterSymbol.Take(candidateMethod.
Arity
), true);
Symbols\MethodSymbol.cs (3)
84
return this.
Arity
!= 0;
859
if (!ReferenceEquals(this, ConstructedFrom) || this.
Arity
== 0)
874
if (typeArguments.Length != this.
Arity
)
Symbols\MethodSymbolExtensions.cs (1)
46
method.ParameterCount != 0 || method.
Arity
!= 0 || !method.IsMetadataVirtual(MethodSymbol.IsMetadataVirtualOption.IgnoreInterfaceImplementationChanges))
Symbols\NamedTypeSymbol.cs (1)
354
((options & LookupOptions.AllMethodsOnArityZero) != 0 || arity == method.
Arity
))
Symbols\PublicModel\MethodSymbol.cs (1)
311
int IMethodSymbol.Arity => _underlying.
Arity
;
Symbols\ReducedExtensionMethodSymbol.cs (1)
303
get { return _reducedFrom.
Arity
; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1020
IndexedTypeParameterSymbol.TakeSymbols(method.
Arity
),
Symbols\SymbolExtensions.cs (1)
352
return ((MethodSymbol)symbol).
Arity
;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
165
Arity
: 0
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
146
return member is MethodSymbol { IsStatic: false, ParameterCount: 1,
Arity
: 0 } method &&
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
61
get { return _interfaceMethod.
Arity
; }
Symbols\TypeSymbol.cs (3)
2087
Debug.Assert(interfaceMethod.
Arity
== implicitImpl.
Arity
);
2090
var arity = interfaceMethod.
Arity
;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
52
return UnderlyingMethod.
Arity
;