13 overrides of Arity
Microsoft.CodeAnalysis.CSharp (13)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
80public sealed override int Arity
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
255public sealed override int Arity
Symbols\ErrorTypeSymbol.cs (1)
274public override int Arity
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
391public abstract override int Arity
Symbols\Source\SourceMemberContainerSymbol.cs (1)
955public override int Arity
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
120public override int Arity => 0;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
797public override int Arity => 1;
Symbols\Synthesized\SynthesizedContainer.cs (1)
170public override int Arity => TypeParameters.Length;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
54public override int Arity => 0;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
84public override int Arity => 0;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
45public override int Arity => 1;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
38public override int Arity => 0;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
50public override int Arity
103 references to Arity
Microsoft.CodeAnalysis.CSharp (103)
Binder\Binder_Crefs.cs (2)
421if (containerType.Name == memberName && (hasParameterList || containerType.Arity == 0 || !TypeSymbol.Equals(this.ContainingType, containerType.OriginalDefinition, TypeCompareKind.ConsiderEverything2))) 610if (containing.Arity > 0 && containing.IsDefinition)
Binder\Binder_Lookup.cs (3)
1775if (namedType.Arity != arity) 1777if (namedType.Arity == 0) 1785diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.ERR_BadArity, namedType, MessageID.IDS_SK_TYPE.Localize(), namedType.Arity) : null;
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1313if (curr.Arity > 0)
Binder\LockBinder.cs (1)
87if (scopeType is not NamedTypeSymbol { Name: WellKnownMemberNames.LockScopeTypeName, Arity: 0, IsValueType: true, IsRefLikeType: true, DeclaredAccessibility: Accessibility.Public } ||
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1710if (targetType is NamedTypeSymbol { Arity: 1 } namedType
BoundTree\BoundInlineArrayAccess.cs (1)
57Arity: 1
BoundTree\UnboundLambda.cs (2)
317var resultType = taskType?.Arity == 0 ? 332var taskTypeT = taskType?.Arity == 1 ?
Compiler\ClsComplianceChecker.cs (1)
1079sawGeneric = sawGeneric || containingType.Arity > 0;
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
593if (typeSymbol.Arity > 0)
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (3)
166ordinalOffset += curr.Arity; 186if (symbol.Arity != 0) 193builder.Append(symbol.Arity);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
509Debug.Assert(type.Arity == otherType.Arity);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
191anonymousDelegatesWithIndexedNames.AddPooled(new AnonymousDelegateWithIndexedNamePartialKey(type.Arity, parameterCount), value);
Emitter\Model\NamedTypeReference.cs (1)
31return (ushort)UnderlyingNamedType.Arity;
Emitter\Model\NamedTypeSymbolAdapter.cs (4)
100AdaptedNamedTypeSymbol.Arity > 0) 187(AdaptedNamedTypeSymbol.Arity == 0 || PEModuleBuilder.IsGenericType(AdaptedNamedTypeSymbol.ContainingType))) 478get { return (ushort)AdaptedNamedTypeSymbol.Arity; } 552return AdaptedNamedTypeSymbol.Arity != 0;
Emitter\Model\PEModuleBuilder.cs (2)
1018if (namedTypeSymbol.Arity > 0) 1116if (toCheck.Arity > 0)
FlowAnalysis\NullableWalker.cs (2)
4726Debug.Assert(namedType.OriginalDefinition.Arity == 1); 4733Debug.Assert(namedType.OriginalDefinition.Arity == 1);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
350if (builderType.IsUnboundGenericType && builderType.ContainingType?.IsGenericType != true && builderType.Arity == 1)
Lowering\ClosureConversion\ClosureConversion.cs (2)
901if (frameType.Arity > 0) 904Debug.Assert(typeParameters.Length == frameType.Arity);
Lowering\LocalRewriter\LocalRewriter_TupleCreationExpression.cs (2)
56smallestType.Arity); 58NamedTypeSymbol.GetTupleCtor(smallestType.Arity),
Symbols\AssemblySymbol.cs (1)
864Debug.Assert(remainingTypeArguments >= symbol.Arity);
Symbols\Compilation_WellKnownMembers.cs (2)
1102if (named.Arity <= argumentIndex) 1124if (named.Arity == 0)
Symbols\ConstraintsHelper.cs (2)
676Debug.Assert(typeArgumentsSyntax.Count == 0 /*omitted*/ || typeArgumentsSyntax.Count == type.Arity); 1551if (type.Arity == 0)
Symbols\ConstructedNamedTypeSymbol.cs (3)
26unbound: newContainer.IsUnboundGenericType && originalDefinition.Arity == 0) 71Debug.Assert(constructedFrom.Arity == typeArgumentsWithAnnotations.Length); 72Debug.Assert(constructedFrom.Arity != 0);
Symbols\ExtendedErrorTypeSymbol.cs (1)
318return ((NamedTypeSymbol)symbol).Arity;
Symbols\FieldSymbol.cs (1)
485int arity = ContainingType.Arity;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
210&& modifierType.Arity == 0
Symbols\MemberSymbolExtensions.cs (1)
298return ((NamedTypeSymbol)symbol).Arity;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
88cumulativeArity = namedType.Arity;
Symbols\Metadata\PE\SymbolFactory.cs (1)
120argumentIndex -= typeToCheck.Arity;
Symbols\MethodSymbolExtensions.cs (2)
160&& method.ReturnType is NamedTypeSymbol { Arity: 0 } 170&& method.ReturnType is NamedTypeSymbol { Arity: 1 }
Symbols\NamedTypeSymbol.cs (6)
483Debug.Assert(!(fileIdentifier != null && !MangleName && Arity > 0)); 485? MetadataHelpers.ComposeAritySuffixedMetadataName(Name, Arity, fileIdentifier) 1189if (this.Arity == 0) 1204if (typeArguments.Length != this.Arity) 1639int arity = Arity; 1659arity = (typeToCheck as NamedTypeSymbol)?.Arity ?? 0;
Symbols\NamespaceOrTypeSymbol.cs (3)
285if (emittedTypeName.InferredArity == named.Arity && 334(forcedArity == -1 || forcedArity == named.Arity) && 366&& named.Arity == emittedTypeName.InferredArity)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
28return UnderlyingNamedTypeSymbol.Arity;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (8)
323type.Arity == 0) 338MetadataTypeName name = MetadataTypeName.FromFullName(type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat), forcedArity: type.Arity); 459mdName = MetadataTypeName.FromTypeName(type.MetadataName, forcedArity: type.Arity); 468mdName = MetadataTypeName.FromNamespaceAndTypeName(namespaceName, type.MetadataName, forcedArity: type.Arity); 472Debug.Assert(result1.Arity == type.Arity); 499Debug.Assert(originalDefinition.Arity == 0 || !ReferenceEquals(type.ConstructedFrom, type)); 570if (genericType.Arity > 0)
Symbols\Source\SourceAssemblySymbol.cs (7)
1087if (x.Arity == y.Arity && x.Name == y.Name) 1092if (x.Arity != 0 || !x.ContainingNamespace.IsGlobalNamespace || x.Name != "<Module>") 1133result = x.Arity - y.Arity; 2859if ((forcedArity == -1 || result.Arity == forcedArity) && 2860(!emittedName.UseCLSCompliantNameArityEncoding || result.Arity == 0 || result.MangleName))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
230else if (!ContainingType.IsScriptClass && !(ContainingType.IsStatic && ContainingType.Arity == 0))
Symbols\SymbolExtensions.cs (1)
350return ((NamedTypeSymbol)symbol).Arity;
Symbols\Tuples\TupleTypeSymbol.cs (9)
134if (Arity < NamedTypeSymbol.ValueTupleRestPosition) 147while (underlyingType.Arity >= NamedTypeSymbol.ValueTupleRestPosition); 211if (currentType.Arity == NamedTypeSymbol.ValueTupleRestPosition) 582var currentFieldsForElements = ArrayBuilder<FieldSymbol?>.GetInstance(currentValueTuple.Arity); 585collectTargetTupleFields(currentValueTuple.Arity, getOriginalFields(currentMembers), currentFieldsForElements); 706if (currentValueTuple.Arity != ValueTupleRestPosition) 715if (currentValueTuple.Arity != ValueTupleRestPosition) 720collectTargetTupleFields(currentValueTuple.Arity, getOriginalFields(currentMembers), currentFieldsForElements); 982if (tuple.Arity == ValueTupleRestPosition)
Symbols\TypeSymbolExtensions.cs (13)
485if (type.Arity == 0) 490if (type.Arity == 1 && 500type.Arity == 0) 1372Arity: 1, 1385Arity: 1, 1831if (namedType is null || namedType.Arity != 0) 1848if (!(type is NamedTypeSymbol { Arity: 1 } namedType)) 1861if (!(type is NamedTypeSymbol { Arity: 1 } namedType)) 1871if (!(type is NamedTypeSymbol { Arity: 1 } namedType)) 1893var arity = type.Arity; 1997int arity = type.Arity; 2136return typeSymbol is NamedTypeSymbol { Name: WellKnownMemberNames.LockTypeName, Arity: 0, ContainingType: null } && 2169return type is NamedTypeSymbol { Name: "INumberBase", IsInterface: true, Arity: 1, ContainingType: null } &&
Symbols\TypeUnification.cs (2)
158int arity = nt1.Arity; 160if (nt2.Arity != arity || !TypeSymbol.Equals(nt2.OriginalDefinition, nt1.OriginalDefinition, TypeCompareKind.ConsiderEverything))
Symbols\UnboundGenericType.cs (1)
28int n = original.Arity;
Symbols\VarianceSafety.cs (1)
383for (int i = 0; i < namedType.Arity; i++)
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
54return _underlyingType.Arity;