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