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