429 references to CustomModifiers
Microsoft.CodeAnalysis.CSharp (177)
Binder\Binder_Symbols.cs (1)
1690return type.WithTypeAndModifiers(namedTypeRight.AsUnboundGenericType(), type.CustomModifiers);
Binder\Semantics\Conversions\Conversions.cs (1)
437TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers,
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (20)
163var otherModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 311return t.WithTypeAndModifiers(newType, v.VisitCustomModifiers(t.CustomModifiers)); 389var otherModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 404var otherReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(otherReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers)); 425otherParamsBuilder.Add(param.TypeWithAnnotations.WithTypeAndModifiers(otherType, VisitCustomModifiers(param.TypeWithAnnotations.CustomModifiers))); 533var otherType = type.WithTypeAndModifiers((TypeSymbol?)this.Visit(type.Type), this.VisitCustomModifiers(type.CustomModifiers)); 576Debug.Assert(type.ElementTypeWithAnnotations.CustomModifiers.IsEmpty); 577Debug.Assert(other.ElementTypeWithAnnotations.CustomModifiers.IsEmpty); 633Debug.Assert(type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.All(t => t.CustomModifiers.IsEmpty)); 634Debug.Assert(other.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.All(t => t.CustomModifiers.IsEmpty)); 671Debug.Assert(type.PointedAtTypeWithAnnotations.CustomModifiers.IsEmpty); 672Debug.Assert(other.PointedAtTypeWithAnnotations.CustomModifiers.IsEmpty); 703Debug.Assert(type.CustomModifiers.IsEmpty); 749Debug.Assert(type.CustomModifiers.IsDefaultOrEmpty); 750Debug.Assert(other.CustomModifiers.IsDefaultOrEmpty); 869var translatedModifiers = VisitCustomModifiers(symbol.ElementTypeWithAnnotations.CustomModifiers); 891v.VisitCustomModifiers(t.CustomModifiers)), 912var translatedModifiers = VisitCustomModifiers(symbol.PointedAtTypeWithAnnotations.CustomModifiers); 920var translatedReturnTypeWithAnnotations = sig.ReturnTypeWithAnnotations.WithTypeAndModifiers(translatedReturnType, VisitCustomModifiers(sig.ReturnTypeWithAnnotations.CustomModifiers)); 934translatedParamsBuilder.Add(param.TypeWithAnnotations.WithTypeAndModifiers(translatedParamType, VisitCustomModifiers(param.TypeWithAnnotations.CustomModifiers)));
Emitter\Model\ArrayTypeSymbolAdapter.cs (2)
29if (elementType.CustomModifiers.Length == 0) 35return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(elementType.CustomModifiers));
Emitter\Model\FieldSymbolAdapter.cs (1)
36var customModifiers = fieldTypeWithAnnotations.CustomModifiers;
Emitter\Model\GenericMethodInstanceReference.cs (1)
36Debug.Assert(arg.CustomModifiers.IsEmpty);
Emitter\Model\GenericTypeInstanceReference.cs (1)
30Debug.Assert(!underlyingNamedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Any(static a => a.CustomModifiers.Any()));
Emitter\Model\MethodReference.cs (1)
89return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.ReturnTypeWithAnnotations.CustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (2)
230return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.ReturnTypeWithAnnotations.CustomModifiers); 265Debug.Assert(arg.CustomModifiers.IsEmpty);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
897var modifiers = arguments[i].CustomModifiers;
Emitter\Model\ParameterSymbolAdapter.cs (1)
33return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedParameterSymbol.TypeWithAnnotations.CustomModifiers);
Emitter\Model\ParameterTypeInformation.cs (1)
31return ImmutableArray<Cci.ICustomModifier>.CastUp(_underlyingParameter.TypeWithAnnotations.CustomModifiers);
Emitter\Model\PointerTypeSymbolAdapter.cs (2)
25if (AdaptedPointerTypeSymbol.PointedAtTypeWithAnnotations.CustomModifiers.Length == 0) 31return new Cci.ModifiedTypeReference(type, ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedPointerTypeSymbol.PointedAtTypeWithAnnotations.CustomModifiers));
Emitter\Model\PropertySymbolAdapter.cs (1)
184return AdaptedPropertySymbol.TypeWithAnnotations.CustomModifiers.As<ICustomModifier>();
Emitter\Model\SpecializedFieldReference.cs (1)
64var customModifiers = oldType.CustomModifiers;
Emitter\Model\SpecializedGenericMethodInstanceReference.cs (1)
37Debug.Assert(arg.CustomModifiers.IsEmpty);
Emitter\Model\SpecializedGenericNestedTypeInstanceReference.cs (1)
29Debug.Assert(!underlyingNamedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Any(static a => a.CustomModifiers.Any()));
Lowering\MethodToClassRewriter.cs (1)
148visitedTypeArgs.Add(typeArg.WithTypeAndModifiers(VisitType(typeArg.Type), typeArg.CustomModifiers));
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
485return underlyingTypeSymbol.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.SelectAsArray(a => a.CustomModifiers);
Symbols\AbstractTypeMap.cs (1)
396return substituted.WithTypeAndModifiers(dynamicEraser.EraseDynamic(substituted.Type), substituted.CustomModifiers);
Symbols\Compilation_WellKnownMembers.cs (3)
963HandleCustomModifiers(((ArrayTypeSymbol)type).ElementTypeWithAnnotations.CustomModifiers.Length, transformFlagsBuilder); 972HandleCustomModifiers(((PointerTypeSymbol)type).PointedAtTypeWithAnnotations.CustomModifiers.Length, transformFlagsBuilder); 1038HandleCustomModifiers(twa.CustomModifiers.Length, transformFlagsBuilder);
Symbols\ConstructedNamedTypeSymbol.cs (1)
124if (GetUnificationUseSiteDiagnosticRecursive(ref result, typeArg.CustomModifiers, owner, ref checkedTypes))
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
648var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers; 671var modifiersToSearch = RefKind != RefKind.None ? RefCustomModifiers : ReturnTypeWithAnnotations.CustomModifiers;
Symbols\MemberSignatureComparer.cs (2)
568(unsubstitutedReturnType1.CustomModifiers.IsEmpty && unsubstitutedReturnType2.CustomModifiers.IsEmpty))
Symbols\MemberSymbolExtensions.cs (4)
440count += methodReturnType.CustomModifiers.Length + method.RefCustomModifiers.Length; 446count += paramType.CustomModifiers.Length + param.RefCustomModifiers.Length; 489count += type.CustomModifiers.Length + property.RefCustomModifiers.Length; 495count += paramType.CustomModifiers.Length + param.RefCustomModifiers.Length;
Symbols\Metadata\PE\DynamicTypeDecoder.cs (7)
289transformedTypeArgsBuilder.Add(typeArg.WithTypeAndModifiers(transformedTypeArg, typeArg.CustomModifiers)); 307if (!HandleCustomModifiers(arrayType.ElementTypeWithAnnotations.CustomModifiers.Length)) 321ArrayTypeSymbol.CreateSZArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers)) : 322ArrayTypeSymbol.CreateMDArray(_containingAssembly, arrayType.ElementTypeWithAnnotations.WithTypeAndModifiers(transformedElementType, arrayType.ElementTypeWithAnnotations.CustomModifiers), arrayType.Rank, arrayType.Sizes, arrayType.LowerBounds); 330if (!HandleCustomModifiers(pointerType.PointedAtTypeWithAnnotations.CustomModifiers.Length)) 343new PointerTypeSymbol(pointerType.PointedAtTypeWithAnnotations.WithTypeAndModifiers(transformedPointedAtType, pointerType.PointedAtTypeWithAnnotations.CustomModifiers)); 402|| !decoder.HandleCustomModifiers(typeWithAnnotations.CustomModifiers.Length))
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (3)
186CustomModifiersMatch(fieldType.CustomModifiers, fieldInfo.CustomModifiers)) 266if (!CustomModifiersMatch(substituted.CustomModifiers, targetParam.CustomModifiers) || 294if (!CustomModifiersMatch(substituted.CustomModifiers, targetReturnParam.CustomModifiers) ||
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (1)
76return type.WithTypeAndModifiers(transformedType, type.CustomModifiers);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1463ReturnTypeWithAnnotations.CustomModifiers.HasIsExternalInitModifier();
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
310typeWithAnnotations = typeWithAnnotations.WithTypeAndModifiers(typeSymbol, typeWithAnnotations.CustomModifiers); 434refCustomModifiers.NullToEmpty().Length + type.CustomModifiers.Length,
Symbols\Metadata\PE\TupleTypeDecoder.cs (2)
121TypeWithAnnotations.Create(decoded, metadataType.NullableAnnotation, metadataType.CustomModifiers); 346TypeWithAnnotations.Create(decoded, typeWithAnnotations.NullableAnnotation, typeWithAnnotations.CustomModifiers);
Symbols\MethodSymbol.cs (1)
1167AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + this.RefCustomModifiers.Length, this.RefKind));
Symbols\OverriddenOrHiddenMembersHelpers.cs (3)
669Debug.Assert(!(param.TypeWithAnnotations.CustomModifiers.Any() || param.RefCustomModifiers.Any())); 894return methodReturnType.CustomModifiers.Any() || method.RefCustomModifiers.Any() || 899return propertyType.CustomModifiers.Any() || property.RefCustomModifiers.Any() ||
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
64ImmutableArray<CustomModifier> IArrayTypeSymbol.CustomModifiers => _underlying.ElementTypeWithAnnotations.CustomModifiers;
Symbols\PublicModel\FieldSymbol.cs (1)
55get { return _underlying.TypeWithAnnotations.CustomModifiers; }
Symbols\PublicModel\MethodSymbol.cs (1)
254return _underlying.ReturnTypeWithAnnotations.CustomModifiers;
Symbols\PublicModel\NamedTypeSymbol.cs (1)
96return UnderlyingNamedTypeSymbol.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[ordinal].CustomModifiers;
Symbols\PublicModel\ParameterSymbol.cs (1)
43get { return _underlying.TypeWithAnnotations.CustomModifiers; }
Symbols\PublicModel\PointerTypeSymbol.cs (1)
49get { return _underlying.PointedAtTypeWithAnnotations.CustomModifiers; }
Symbols\PublicModel\PropertySymbol.cs (1)
98get { return _underlying.TypeWithAnnotations.CustomModifiers; }
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
190var newModifiers = RetargetModifiers(underlyingType.CustomModifiers, out modifiersHaveChanged);
Symbols\SignatureOnlyMethodSymbol.cs (1)
48Debug.Assert(returnType.IsDefault || isInitOnly == CustomModifierUtils.HasIsExternalInitModifier(returnType.CustomModifiers));
Symbols\SignatureOnlyParameterSymbol.cs (3)
123_type.CustomModifiers.Equals(other._type.CustomModifiers) && 135Hash.CombineValues(_type.CustomModifiers),
Symbols\Source\CustomModifierUtils.cs (4)
60sourceMethodReturnType.CustomModifiers); 131if (sourceParameter.TypeWithAnnotations.CustomModifiers.Any() || sourceParameter.RefCustomModifiers.Any() || 133destinationParameter.TypeWithAnnotations.CustomModifiers.Any() || destinationParameter.RefCustomModifiers.Any() || 145sourceParameter.TypeWithAnnotations.CustomModifiers,
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
405compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length));
Symbols\Source\SourceEventSymbol.cs (2)
383AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length)); 711eventWithCustomModifiers.TypeWithAnnotations.CustomModifiers);
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (13)
70AppendClrType(extendedType.Type, extendedType.CustomModifiers, builder); 71Debug.Assert(extendedType.CustomModifiers.IsEmpty); 121Debug.Assert(typeConstraint.CustomModifiers.IsEmpty); 122AppendClrType(typeConstraint.Type, typeConstraint.CustomModifiers, constraintBuilder.Builder); 174AppendClrType(pointedAtType.Type, pointedAtType.CustomModifiers, builder); 255AppendClrType(typeArgument.Type, typeArgument.CustomModifiers, builder); 284AppendClrType(elementType.Type, elementType.CustomModifiers, builder); 315AppendClrType(returnType.Type, returnType.CustomModifiers, builder); 333AppendClrType(parameterType.Type, parameterType.CustomModifiers, builder); 436Debug.Assert(type.CustomModifiers.IsEmpty); 526Debug.Assert(elementType.CustomModifiers.IsEmpty); 587Debug.Assert(typeArguments[i].CustomModifiers.IsEmpty); 1003AppendClrType(parameterType.Type, parameterType.CustomModifiers, builder);
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (2)
84Debug.Assert(_lazyReturnType.CustomModifiers.IsEmpty); 146Debug.Assert(_lazyReturnType.CustomModifiers.IsEmpty);
Symbols\Source\SourceParameterSymbolBase.cs (1)
102AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + parameter.RefCustomModifiers.Length, parameter.RefKind));
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
295type.CustomModifiers);
Symbols\Source\SourcePropertySymbolBase.cs (2)
262overriddenPropertyType.CustomModifiers); 1400compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + RefCustomModifiers.Length, _refKind));
Symbols\SubstitutedParameterSymbol.cs (2)
62if (substituted.CustomModifiers.IsEmpty && 63this._underlyingParameter.TypeWithAnnotations.CustomModifiers.IsEmpty &&
Symbols\Symbol.cs (1)
1243DeriveUseSiteInfoFromCustomModifiers(ref result, type.CustomModifiers, allowedRequiredModifierType);
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
67AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type, typeWithAnnotations.CustomModifiers.Length));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
158AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + this.RefCustomModifiers.Length, this.RefKind));
Symbols\TypeSymbolExtensions.cs (3)
818foreach (var customModifier in typeWithAnnotationsOpt.CustomModifiers) 1958typeWithAnnotations = TypeWithAnnotations.Create(type, customModifiers: typeWithAnnotations.CustomModifiers); 1982typeArgumentsBuilder[i] = TypeWithAnnotations.Create(typeArgNormalized, customModifiers: typeWithModifier.CustomModifiers);
Symbols\TypeUnification.cs (32)
34Debug.Assert(substituted1.CustomModifiers.SequenceEqual(substituted2.CustomModifiers)); 92if (TypeSymbol.Equals(t1.Type, t2.Type, TypeCompareKind.CLRSignatureCompareOptions) && t1.CustomModifiers.SequenceEqual(t2.CustomModifiers)) 113if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 130if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 143if (t2.TypeKind != t1.TypeKind || !t2.CustomModifiers.SequenceEqual(t1.CustomModifiers)) 199if (t1.CustomModifiers.IsDefaultOrEmpty) 205if (t1.CustomModifiers.SequenceEqual(t2.CustomModifiers)) 211if (t1.CustomModifiers.Length < t2.CustomModifiers.Length && 212t1.CustomModifiers.SequenceEqual(t2.CustomModifiers.Take(t1.CustomModifiers.Length))) 216customModifiers: ImmutableArray.Create(t2.CustomModifiers, t1.CustomModifiers.Length, t2.CustomModifiers.Length - t1.CustomModifiers.Length))); 224if (t2.CustomModifiers.IsDefaultOrEmpty) 230if (t2.CustomModifiers.Length < t1.CustomModifiers.Length && 231t2.CustomModifiers.SequenceEqual(t1.CustomModifiers.Take(t2.CustomModifiers.Length))) 235customModifiers: ImmutableArray.Create(t1.CustomModifiers, t2.CustomModifiers.Length, t1.CustomModifiers.Length - t2.CustomModifiers.Length)));
Symbols\TypeWithAnnotations.cs (23)
115return Create(Type, NullableAnnotation.Annotated, CustomModifiers); 125return Create(Type, NullableAnnotation.NotAnnotated, CustomModifiers); 196Debug.Assert(CustomModifiers.IsEmpty); 204return CreateNonLazyType(typeSymbol, NullableAnnotation.Annotated, this.CustomModifiers); 247return Create(type, nullableAnnotation, CustomModifiers); 359!this.CustomModifiers.SequenceEqual(other.CustomModifiers)) 427Symbol.GetUnificationUseSiteDiagnosticRecursive(ref result, this.CustomModifiers, owner, ref checkedTypes); 444var newCustomModifiers = typeMap.SubstituteCustomModifiers(this.CustomModifiers); 451Debug.Assert(newTypeWithModifiers.CustomModifiers.IsEmpty); 455newCustomModifiers == CustomModifiers) 469newCustomModifiers == CustomModifiers) 513return CreateLazySubstitutedType(newTypeWithModifiers.DefaultType, newCustomModifiers.Concat(newTypeWithModifiers.CustomModifiers), typeParameter); 536newCustomModifiers.Concat(newTypeWithModifiers.CustomModifiers)); 564CustomModifiers.IsEmpty; 571_extensions.WithTypeAndModifiers(this, typeSymbol, CustomModifiers); 695result = result.WithTypeAndModifiers(newTypeSymbol, result.CustomModifiers); 712result = CreateNonLazyType(newTypeSymbol, NullableAnnotation.Oblivious, result.CustomModifiers); 732return CreateNonLazyType(typeSymbol, NullableAnnotation.NotAnnotated, CustomModifiers); 745return CreateNonLazyType(newTypeSymbol, NullableAnnotation.Oblivious, CustomModifiers); 751return WithTypeAndModifiers(newTypeSymbol, CustomModifiers); 1069Debug.Assert(underlying.CustomModifiers.IsEmpty); 1163newUnderlying.CustomModifiers.IsEmpty)
Utilities\TypeSymbolExtensions.cs (2)
76=> typeWithAnnotations.CustomModifiers.Length + typeWithAnnotations.Type.CustomModifierCount(); 158=> typeWithAnnotations.CustomModifiers.Any() || typeWithAnnotations.Type.HasCustomModifiers(flagNonDefaultArraySizesOrLowerBounds);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (120)
CodeGen\CodeGenFunctionPointersTests.cs (4)
693var returnModifiers = param.Signature.ReturnTypeWithAnnotations.CustomModifiers; 699var paramModifiers = param.Signature.ParameterTypesWithAnnotations[0].CustomModifiers; 869Assert.Equal(1, returnTypeWithAnnotations.CustomModifiers.Length); 870Assert.Equal(SpecialType.System_Object, returnTypeWithAnnotations.CustomModifiers[0].Modifier.SpecialType);
CodeGen\CodeGenTupleTest.cs (23)
3370Assert.True(mFirst.TypeWithAnnotations.CustomModifiers.IsEmpty); 3388Assert.True(mItem1.TypeWithAnnotations.CustomModifiers.IsEmpty); 4606Assert.True(mItem1.TypeWithAnnotations.CustomModifiers.IsEmpty); 11208Assert.True(m1Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.All(t => t.CustomModifiers.IsEmpty)); 11252Assert.True(m1Item1.TypeWithAnnotations.CustomModifiers.IsEmpty); 11273Assert.True(m2Item1.TypeWithAnnotations.CustomModifiers.IsEmpty); 11294Assert.True(m2a2.TypeWithAnnotations.CustomModifiers.IsEmpty); 11497Assert.True(m1Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.All(t => t.CustomModifiers.IsEmpty)); 11547Assert.True(m1Item9.TypeWithAnnotations.CustomModifiers.IsEmpty); 11562Assert.True(m2Item9.TypeWithAnnotations.CustomModifiers.IsEmpty); 11579Assert.True(m2i2.TypeWithAnnotations.CustomModifiers.IsEmpty); 11781Assert.True(m3Item8.TypeWithAnnotations.CustomModifiers.IsEmpty); 11974Assert.True(m4Item8.TypeWithAnnotations.CustomModifiers.IsEmpty); 11993Assert.True(m4h4.TypeWithAnnotations.CustomModifiers.IsEmpty); 12222Assert.True(m5Item8.TypeWithAnnotations.CustomModifiers.IsEmpty); 12590Assert.True(m8Item8.TypeWithAnnotations.CustomModifiers.IsEmpty); 12610Assert.True(m8Item1.TypeWithAnnotations.CustomModifiers.IsEmpty); 12755Assert.True(m1Tuple.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.All(t => t.CustomModifiers.IsEmpty)); 12803Assert.True(m1Item1.TypeWithAnnotations.CustomModifiers.IsEmpty); 12822Assert.True(m2Item1.TypeWithAnnotations.CustomModifiers.IsEmpty); 12841Assert.True(m2a2.TypeWithAnnotations.CustomModifiers.IsEmpty); 15826Assert.True(m1P1.TypeWithAnnotations.CustomModifiers.IsEmpty); 15856Assert.True(m1this.TypeWithAnnotations.CustomModifiers.IsEmpty);
Emit\EmitCustomModifiers.cs (3)
607Assert.False(parameter.TypeWithAnnotations.CustomModifiers.IsEmpty); 663Assert.False(baseParameter.TypeWithAnnotations.CustomModifiers.IsEmpty); 671Assert.False(derivedParameter.TypeWithAnnotations.CustomModifiers.IsEmpty);
Emit\EmitMetadataTests.cs (3)
556Assert.Equal(0, f1.TypeWithAnnotations.CustomModifiers.Length); 559Assert.Equal(1, f2.TypeWithAnnotations.CustomModifiers.Length); 561CustomModifier mod = f2.TypeWithAnnotations.CustomModifiers[0];
Emit\InAttributeModifierTests.cs (87)
1656Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 1676Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 1697Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 1717Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 1738Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 1759Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 1780Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1800Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1821Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1842Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 1862Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 1882Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 1903Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 1923Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 1945Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 1962Assert.Empty(invokeParameter.TypeWithAnnotations.CustomModifiers); 1966Assert.Empty(beginInvokeParameter.TypeWithAnnotations.CustomModifiers); 1970Assert.Empty(endInvokeParameter.TypeWithAnnotations.CustomModifiers); 1987Assert.Empty(invokeMethod.ReturnTypeWithAnnotations.CustomModifiers); 1991Assert.Empty(endInvokeMethod.ReturnTypeWithAnnotations.CustomModifiers); 2011Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2031Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2051Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2071Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2092Assert.Empty(parameters[0].TypeWithAnnotations.CustomModifiers); 2095Assert.Empty(parameters[1].TypeWithAnnotations.CustomModifiers); 2115Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2502Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2528Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2550Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2575Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2597Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2623Assert.Empty(implicitParameter.TypeWithAnnotations.CustomModifiers); 2630Assert.Empty(explicitParameter.TypeWithAnnotations.CustomModifiers); 2652Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2678Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2700Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2725Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 2747Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 2770Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 2792Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 2815Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 2837Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 2860Assert.Empty(implicitMethod.ReturnTypeWithAnnotations.CustomModifiers); 2882Assert.Empty(implicitMethod.ReturnTypeWithAnnotations.CustomModifiers); 2905Assert.Empty(implicitMethod.ReturnTypeWithAnnotations.CustomModifiers); 2927Assert.Empty(implicitMethod.ReturnTypeWithAnnotations.CustomModifiers); 2950Assert.Empty(implicitMethod.ReturnTypeWithAnnotations.CustomModifiers); 2972Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 2995Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3017Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3041Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3063Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3087Assert.Empty(implicitproperty.TypeWithAnnotations.CustomModifiers); 3109Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3133Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3155Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3179Assert.Empty(property.TypeWithAnnotations.CustomModifiers); 3201Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3227Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3249Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3275Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3297Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3323Assert.Empty(implicitParameter.TypeWithAnnotations.CustomModifiers); 3330Assert.Empty(explicitParameter.TypeWithAnnotations.CustomModifiers); 3352Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3378Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3400Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3426Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3448Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3472Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3494Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3518Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3540Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3564Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3586Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3610Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3632Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3656Assert.Empty(indexer.TypeWithAnnotations.CustomModifiers); 3673Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3706Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 3745Assert.Empty(parameter.TypeWithAnnotations.CustomModifiers); 3787Assert.Empty(method.ReturnTypeWithAnnotations.CustomModifiers); 3835Assert.Empty(interfaceMethod.ReturnTypeWithAnnotations.CustomModifiers); 3840Assert.Empty(classMethod.ReturnTypeWithAnnotations.CustomModifiers); 3864Assert.Empty(parentMethod.ReturnTypeWithAnnotations.CustomModifiers); 3869Assert.Empty(classMethod.ReturnTypeWithAnnotations.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\EditAndContinue\SymbolMatcherTests.cs (4)
194Assert.Equal(1, ((PointerTypeSymbol)member1.Parameters[0].Type).PointedAtTypeWithAnnotations.CustomModifiers.Length); 195Assert.Equal(1, ((ArrayTypeSymbol)member1.ReturnType).ElementTypeWithAnnotations.CustomModifiers.Length); 201Assert.Equal(1, ((PointerTypeSymbol)other.Parameters[0].Type).PointedAtTypeWithAnnotations.CustomModifiers.Length); 202Assert.Equal(1, ((ArrayTypeSymbol)other.ReturnType).ElementTypeWithAnnotations.CustomModifiers.Length);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\ExtensionTests2.cs (1)
25030AssertEx.SequenceEqual(["System.Int32", "System.String", "System.Int64"], field.TypeWithAnnotations.CustomModifiers.SelectAsArray(m => m.Modifier.ToTestDisplayString()));
Semantics\RecordTests.cs (2)
12553AssertEx.Equal(expectedModifiers, returnType.CustomModifiers); 12560AssertEx.Equal(expectedModifiers, parameterType.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InitOnlyMemberTests.cs (7)
1462Assert.Empty(property.GetMethod.ReturnTypeWithAnnotations.CustomModifiers); 1479var modifier = property.SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single(); 3904Assert.Empty(property0.TypeWithAnnotations.CustomModifiers); 3992Assert.Equal("System.Runtime.CompilerServices.IsExternalInit", property0.TypeWithAnnotations.CustomModifiers.Single().Modifier.ToTestDisplayString()); 4769var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single(); 4822var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single(); 4834var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (118)
Symbols\CustomModifiersTests.cs (5)
306return type.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics.Any(a => a.CustomModifiers.Any()); 1235Assert.True(test.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.SequenceEqual(test.SetMethod.Parameters.First().TypeWithAnnotations.CustomModifiers)); 1523Assert.Same(compilation1.SourceModule.CorLibrary(), ((CSharpCustomModifier)((NamedTypeSymbol)test.Parameters.First().Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].CustomModifiers.First()).ModifierSymbol.ContainingAssembly); 1532Assert.Same(compilation2.SourceModule.CorLibrary(), ((CSharpCustomModifier)((NamedTypeSymbol)test.Parameters.First().Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].CustomModifiers.First()).ModifierSymbol.ContainingAssembly);
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
413Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length);
Symbols\Metadata\PE\LoadCustomModifiers.cs (20)
36Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); 38var f0Mod = f0.TypeWithAnnotations.CustomModifiers[0]; 56Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); 58Assert.Equal(1, p1.TypeWithAnnotations.CustomModifiers.Length); 60var p1Mod = p1.TypeWithAnnotations.CustomModifiers[0]; 65Assert.Equal(2, p2.TypeWithAnnotations.CustomModifiers.Length); 67foreach (var p2Mod in p2.TypeWithAnnotations.CustomModifiers) 80Assert.Equal(1, m5.ReturnTypeWithAnnotations.CustomModifiers.Length); 82var m5Mod = m5.ReturnTypeWithAnnotations.CustomModifiers[0]; 86Assert.Equal(0, p5.TypeWithAnnotations.CustomModifiers.Length); 92Assert.Equal(1, p5Type.ElementTypeWithAnnotations.CustomModifiers.Length); 93var p5TypeMod = p5Type.ElementTypeWithAnnotations.CustomModifiers[0]; 98Assert.Equal(0, p6.TypeWithAnnotations.CustomModifiers.Length); 104Assert.Equal(1, p6Type.PointedAtTypeWithAnnotations.CustomModifiers.Length); 105var p6TypeMod = p6Type.PointedAtTypeWithAnnotations.CustomModifiers[0]; 111Assert.Equal(1, m7.ReturnTypeWithAnnotations.CustomModifiers.Length); 113var m7Mod = m7.ReturnTypeWithAnnotations.CustomModifiers[0]; 161var propertyTypeCustomModifier = property.TypeWithAnnotations.CustomModifiers.Single(); 170var arrayPropertyTypeCustomModifiers = arrayPropertyType.ElementTypeWithAnnotations.CustomModifiers.Single(); 271count += field.TypeWithAnnotations.CustomModifiers.Length;
Symbols\Metadata\PE\LoadingFields.cs (7)
62Assert.Equal(0, f1.TypeWithAnnotations.CustomModifiers.Length); 71Assert.Equal(0, f2.TypeWithAnnotations.CustomModifiers.Length); 79Assert.Equal(0, f3.TypeWithAnnotations.CustomModifiers.Length); 87Assert.Equal(0, f4.TypeWithAnnotations.CustomModifiers.Length); 95Assert.Equal(0, f5.TypeWithAnnotations.CustomModifiers.Length); 102Assert.Equal(1, f6.TypeWithAnnotations.CustomModifiers.Length); 104CustomModifier mod = f6.TypeWithAnnotations.CustomModifiers[0];
Symbols\Metadata\PE\LoadingIndexers.cs (4)
727Assert.NotEqual(parameterModoptIndexer.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length, parameterModoptIndexer.GetMethod.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length); 732Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Length);
Symbols\Metadata\PE\LoadingMethods.cs (1)
76Assert.Equal(0, localM1_1.TypeWithAnnotations.CustomModifiers.Length);
Symbols\Retargeting\RetargetCustomModifiers.cs (22)
49Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); 51var f0Mod = f0.TypeWithAnnotations.CustomModifiers[0]; 68Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); 70Assert.Equal(1, p1.TypeWithAnnotations.CustomModifiers.Length); 72var p1Mod = p1.TypeWithAnnotations.CustomModifiers[0]; 78Assert.Equal(2, p2.TypeWithAnnotations.CustomModifiers.Length); 80foreach (var p2Mod in p2.TypeWithAnnotations.CustomModifiers) 88Assert.Equal(1, m5.ReturnTypeWithAnnotations.CustomModifiers.Length); 90var m5Mod = m5.ReturnTypeWithAnnotations.CustomModifiers[0]; 95Assert.Equal(0, p5.TypeWithAnnotations.CustomModifiers.Length); 101Assert.Equal(1, p5Type.ElementTypeWithAnnotations.CustomModifiers.Length); 102var p5TypeMod = p5Type.ElementTypeWithAnnotations.CustomModifiers[0]; 108Assert.Equal(0, p6.TypeWithAnnotations.CustomModifiers.Length); 114Assert.Equal(1, p6Type.PointedAtTypeWithAnnotations.CustomModifiers.Length); 115var p6TypeMod = p6Type.PointedAtTypeWithAnnotations.CustomModifiers[0]; 122Assert.Equal(1, m7.ReturnTypeWithAnnotations.CustomModifiers.Length); 124var m7Mod = m7.ReturnTypeWithAnnotations.CustomModifiers[0]; 167Assert.Equal(1, volatileFld.TypeWithAnnotations.CustomModifiers.Length); 169var volatileFldMod = volatileFld.TypeWithAnnotations.CustomModifiers[0]; 194Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); 205Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length); 215Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length);
Symbols\Retargeting\RetargetingTests.cs (6)
873getModifierTypeSymbol(ptrOriginal.Signature.ReturnTypeWithAnnotations.CustomModifiers), 874getModifierTypeSymbol(ptrRetargeted.Signature.ReturnTypeWithAnnotations.CustomModifiers)); 891getModifierTypeSymbol(param1Original.TypeWithAnnotations.CustomModifiers), 892getModifierTypeSymbol(param1Retargeted.TypeWithAnnotations.CustomModifiers)); 901getModifierTypeSymbol(param2Original.TypeWithAnnotations.CustomModifiers), 902getModifierTypeSymbol(param2Retargeted.TypeWithAnnotations.CustomModifiers));
Symbols\Source\CustomModifierCopyTests.cs (46)
450CheckCustomModifier(inReturnType, ((ArrayTypeSymbol)method.ReturnType).ElementTypeWithAnnotations.CustomModifiers); 451CheckCustomModifier(onReturnType, method.ReturnTypeWithAnnotations.CustomModifiers); 455CheckCustomModifier(inParameterType, ((ArrayTypeSymbol)method.Parameters.Single().Type).ElementTypeWithAnnotations.CustomModifiers); 456CheckCustomModifier(onParameterType, method.Parameters.Single().TypeWithAnnotations.CustomModifiers); 468CheckCustomModifier(inType, ((ArrayTypeSymbol)property.Type).ElementTypeWithAnnotations.CustomModifiers); 469CheckCustomModifier(onType, property.TypeWithAnnotations.CustomModifiers); 552Assert.False(class3Method1.Parameters.Single().TypeWithAnnotations.CustomModifiers.Any()); 596var classMethod1CustomModifiers = classMethod1.Parameters.Single().TypeWithAnnotations.CustomModifiers; 1792Assert.Equal(int8Type, baseProperty.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 1793Assert.Equal(int8Type, derivedProperty.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 1795Assert.Equal(int16Type, baseProperty.SetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1796Assert.Equal(int16Type, derivedProperty.SetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1798Assert.Equal(int8Type, baseIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 1799Assert.Equal(int8Type, derivedIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 1801Assert.Equal(int16Type, baseIndexer.GetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1802Assert.Equal(int16Type, derivedIndexer.GetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1804Assert.Equal(int32Type, baseIndexer.SetMethod.Parameters[0].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1805Assert.Equal(int32Type, derivedIndexer.SetMethod.Parameters[0].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1807Assert.Equal(int64Type, baseIndexer.SetMethod.Parameters[1].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1808Assert.Equal(int64Type, derivedIndexer.SetMethod.Parameters[1].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1911Assert.Equal(int8Type, baseProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1912Assert.Equal(int8Type, derivedProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1914Assert.Equal(int8Type, baseIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1915Assert.Equal(int8Type, derivedIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1917Assert.Equal(int16Type, baseIndexer.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 1918Assert.Equal(int16Type, derivedIndexer.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2006Assert.Equal(int8Type, interfaceProperty.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 2007Assert.Equal(int8Type, implementationProperty.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 2009Assert.Equal(int16Type, interfaceProperty.SetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2010Assert.Equal(int16Type, implementationProperty.SetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2012Assert.Equal(int8Type, interfaceIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 2013Assert.Equal(int8Type, implementationIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Single().Modifier()); 2015Assert.Equal(int16Type, interfaceIndexer.GetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2016Assert.Equal(int16Type, implementationIndexer.GetMethod.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2018Assert.Equal(int32Type, interfaceIndexer.SetMethod.Parameters[0].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2019Assert.Equal(int32Type, implementationIndexer.SetMethod.Parameters[0].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2021Assert.Equal(int64Type, interfaceIndexer.SetMethod.Parameters[1].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2022Assert.Equal(int64Type, implementationIndexer.SetMethod.Parameters[1].TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2110Assert.Equal(int8Type, interfaceProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2111Assert.Equal(int8Type, implementationProperty.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2113Assert.Equal(int8Type, interfaceIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2114Assert.Equal(int8Type, implementationIndexer.TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2116Assert.Equal(int16Type, interfaceIndexer.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2117Assert.Equal(int16Type, implementationIndexer.Parameters.Single().TypeWithAnnotations.CustomModifiers.Single().Modifier()); 2145Assert.Equal(ConstModOptType, param.TypeWithAnnotations.CustomModifiers.Single().Modifier.ToTestDisplayString()); 2154Assert.Equal(0, param.TypeWithAnnotations.CustomModifiers.Length);
Symbols\Source\FieldTests.cs (4)
148Assert.Equal(0, n1.TypeWithAnnotations.CustomModifiers.Length); 154Assert.Equal(1, n2.TypeWithAnnotations.CustomModifiers.Length); 155CustomModifier mod = n2.TypeWithAnnotations.CustomModifiers[0]; 163Assert.Equal(0, n3.TypeWithAnnotations.CustomModifiers.Length);
Symbols\Source\ModifierTests.cs (2)
171Assert.Equal(customModifiers, substitutedPointerType.PointedAtTypeWithAnnotations.CustomModifiers); 172Assert.Equal(customModifiers, substitutedArrayType.ElementTypeWithAnnotations.CustomModifiers);