2 types derived from CustomModifier
Microsoft.CodeAnalysis.CSharp (1)
Symbols\CustomModifier.cs (1)
15internal abstract partial class CSharpCustomModifier : CustomModifier
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\CustomModifier.vb (1)
14Inherits CustomModifier
753 references to CustomModifier
Microsoft.CodeAnalysis (21)
Symbols\CustomModifiersTuple.cs (10)
11private readonly ImmutableArray<CustomModifier> _typeCustomModifiers; 12private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 13public static readonly CustomModifiersTuple Empty = new CustomModifiersTuple(ImmutableArray<CustomModifier>.Empty, ImmutableArray<CustomModifier>.Empty); 15private CustomModifiersTuple(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers) 21public static CustomModifiersTuple Create(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers) 31public ImmutableArray<CustomModifier> TypeCustomModifiers { get { return _typeCustomModifiers; } } 32public ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } }
Symbols\IArrayTypeSymbol.cs (1)
60ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IFieldSymbol.cs (2)
72ImmutableArray<CustomModifier> RefCustomModifiers { get; } 99ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IMethodSymbol.cs (2)
205ImmutableArray<CustomModifier> ReturnTypeCustomModifiers { get; } 210ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\INamedTypeSymbol.cs (1)
94ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal);
Symbols\IParameterSymbol.cs (2)
73ImmutableArray<CustomModifier> CustomModifiers { get; } 78ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\IPointerTypeSymbol.cs (1)
33ImmutableArray<CustomModifier> CustomModifiers { get; }
Symbols\IPropertySymbol.cs (2)
107ImmutableArray<CustomModifier> RefCustomModifiers { get; } 112ImmutableArray<CustomModifier> TypeCustomModifiers { get; }
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (2)
95public ImmutableArray<CustomModifier> RefCustomModifiers 98public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
57public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
62public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (2)
86public ImmutableArray<CustomModifier> RefCustomModifiers => []; 88public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (2)
63public ImmutableArray<CustomModifier> RefCustomModifiers => []; 65public ImmutableArray<CustomModifier> CustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (2)
85public ImmutableArray<CustomModifier> RefCustomModifiers => []; 87public ImmutableArray<CustomModifier> TypeCustomModifiers => [];
Microsoft.CodeAnalysis.CSharp (335)
Binder\Binder.ValueChecks.cs (4)
5483ImmutableArray<CustomModifier>.Empty, 5492ImmutableArray<CustomModifier>.Empty, 5523ImmutableArray<CustomModifier>.Empty, 5532ImmutableArray<CustomModifier>.Empty,
Binder\Binder_Crefs.cs (3)
798refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 813refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 945parameterBuilder.Add(new SignatureOnlyParameterSymbol(TypeWithAnnotations.Create(type), ImmutableArray<CustomModifier>.Empty, isParamsArray: false, isParamsCollection: false, refKind: refKind));
Binder\Semantics\OverloadResolution\CallingConventionInfo.cs (2)
13internal readonly ImmutableHashSet<CustomModifier>? UnmanagedCallingConventionTypes; 15public CallingConventionInfo(Cci.CallingConvention callKind, ImmutableHashSet<CustomModifier> unmanagedCallingConventionTypes)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
777foreach (var expectedModifier in expectedConvention.UnmanagedCallingConventionTypes)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
1338ImmutableArray<CustomModifier>.Empty,
Compilation\CSharpCompilation.cs (2)
4098: ImmutableArray<CustomModifier>.Empty; 4109static CustomModifier getCustomModifierForType(INamedTypeSymbol type, CSharpCompilation @this, int index)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (14)
400ImmutableArray<ImmutableArray<CustomModifier>> otherParamRefCustomModifiers = default; 405var otherParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 451private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers) 456private CustomModifier VisitCustomModifier(CustomModifier modifier) 694private static void ValidateFunctionPointerParamOrReturn(TypeWithAnnotations type, RefKind refKind, ImmutableArray<CustomModifier> refCustomModifiers, bool allowOut) 699static bool verifyRefModifiers(ImmutableArray<CustomModifier> modifiers, RefKind refKind, bool allowOut) 917ImmutableArray<ImmutableArray<CustomModifier>> translatedParamRefCustomModifiers = default; 922var translatedParamRefCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(sig.ParameterCount); 943private ImmutableArray<CustomModifier> VisitCustomModifiers(ImmutableArray<CustomModifier> modifiers) 948private CustomModifier VisitCustomModifier(CustomModifier modifier)
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
247var modifier = CSharpCustomModifier.CreateRequired(
Lowering\ClosureConversion\LambdaCapturedVariable.cs (2)
141public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (2)
174public override ImmutableArray<CustomModifier> RefCustomModifiers 176get { return ImmutableArray<CustomModifier>.Empty; }
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (2)
66public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
51public override ImmutableArray<CustomModifier> RefCustomModifiers
SymbolDisplay\SymbolDisplayVisitor.Members.cs (3)
577AddTypeArguments(symbol, default(ImmutableArray<ImmutableArray<CustomModifier>>)); 1062private void AddCustomModifiersIfNeeded(ImmutableArray<CustomModifier> customModifiers, bool leadingSpace = false, bool trailingSpace = true) 1067foreach (CustomModifier customModifier in customModifiers)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (3)
433private ImmutableArray<ImmutableArray<CustomModifier>> GetTypeArgumentsModifiers(NamedTypeSymbol? underlyingTypeSymbol) 517ImmutableArray<ImmutableArray<CustomModifier>> modifiers = GetTypeArgumentsModifiers(underlyingTypeSymbol); 780private void AddTypeArguments(ISymbol owner, ImmutableArray<ImmutableArray<CustomModifier>> modifiers)
Symbols\AbstractTypeMap.cs (5)
133internal virtual ImmutableArray<CustomModifier> SubstituteCustomModifiers(ImmutableArray<CustomModifier> customModifiers) 147var builder = ArrayBuilder<CustomModifier>.GetInstance(customModifiers.Length); 248ImmutableArray<ImmutableArray<CustomModifier>> substitutedParamModifiers = default; 253var builder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(paramCount);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (2)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (2)
151public override ImmutableArray<CustomModifier> RefCustomModifiers 153get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (2)
133public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 135get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Compilation_WellKnownMembers.cs (1)
1010void handle(RefKind refKind, ImmutableArray<CustomModifier> customModifiers, TypeWithAnnotations twa)
Symbols\CustomModifier.cs (5)
48internal static CustomModifier CreateOptional(NamedTypeSymbol modifier) 53internal static CustomModifier CreateRequired(NamedTypeSymbol modifier) 58internal static ImmutableArray<CustomModifier> Convert(ImmutableArray<ModifierInfo<TypeSymbol>> customModifiers) 62return ImmutableArray<CustomModifier>.Empty; 67private static CustomModifier Convert(ModifierInfo<TypeSymbol> customModifier)
Symbols\ErrorMethodSymbol.cs (2)
119public override ImmutableArray<CustomModifier> RefCustomModifiers 121get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\ErrorPropertySymbol.cs (2)
94public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return ImmutableArray<CustomModifier>.Empty; } }
Symbols\FieldSymbol.cs (1)
68public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (33)
21private ImmutableHashSet<CustomModifier>? _lazyCallingConventionModifiers; 25ArrayBuilder<CustomModifier> customModifiers = ArrayBuilder<CustomModifier>.GetInstance(); 87var refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 108static CallingConvention getCallingConvention(CSharpCompilation compilation, FunctionPointerCallingConventionSyntax? callingConventionSyntax, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 175CustomModifier? modifier = handleIndividualUnrecognizedSpecifier(specifier, compilation, diagnostics); 189static CallingConvention handleSingleConvention(FunctionPointerUnmanagedCallingConventionSyntax specifier, CSharpCompilation compilation, ArrayBuilder<CustomModifier> customModifiers, BindingDiagnosticBag diagnostics) 192CustomModifier? modifier = handleIndividualUnrecognizedSpecifier(specifier, compilation, diagnostics); 200static CustomModifier? handleIndividualUnrecognizedSpecifier(FunctionPointerUnmanagedCallingConventionSyntax specifier, CSharpCompilation compilation, BindingDiagnosticBag diagnostics) 246ImmutableArray<CustomModifier> refCustomModifiers, 249ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 269ImmutableArray<CustomModifier> callingConventionModifiers, 276var modifiersBuilder = ArrayBuilder<CustomModifier>.GetInstance(); 284ImmutableArray<CustomModifier> refCustomModifiers; 287refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 292if (GetCustomModifierForRefKind(returnRefKind, compilation) is CustomModifier modifier) 310private static CustomModifier? GetCustomModifierForRefKind(RefKind refKind, CSharpCompilation compilation) 336ImmutableArray<CustomModifier> refCustomModifiers = default, 337ImmutableArray<ImmutableArray<CustomModifier>> paramRefCustomModifiers = default) 445ImmutableArray<CustomModifier> refCustomModifiers, 448ImmutableArray<ImmutableArray<CustomModifier>> substitutedRefCustomModifiers, 490ImmutableArray<CustomModifier> refCustomModifiers, 492ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 513static ImmutableArray<CustomModifier> getCustomModifierArrayForRefKind(RefKind refKind, CSharpCompilation compilation) 514=> GetCustomModifierForRefKind(refKind, compilation) is { } modifier ? ImmutableArray.Create(modifier) : ImmutableArray<CustomModifier>.Empty; 521ImmutableArray<CustomModifier> refCustomModifiers, 581static RefKind getRefKind(ParamInfo<TypeSymbol> param, ImmutableArray<CustomModifier> paramRefCustomMods, RefKind hasInRefKind, RefKind hasOutRefKind, bool requiresLocationAllowed) 667public ImmutableHashSet<CustomModifier> GetCallingConventionModifiers() 674_lazyCallingConventionModifiers = ImmutableHashSet<CustomModifier>.Empty; 678var builder = PooledHashSet<CustomModifier>.GetInstance(); 679foreach (var modifier in modifiersToSearch) 689_lazyCallingConventionModifiers = ImmutableHashSet<CustomModifier>.Empty; 771public override ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (2)
16public FunctionPointerParameterSymbol(TypeWithAnnotations typeWithAnnotations, RefKind refKind, int ordinal, FunctionPointerMethodSymbol containingSymbol, ImmutableArray<CustomModifier> refCustomModifiers) 30public override ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (5)
34ImmutableArray<CustomModifier> refCustomModifiers, 37ImmutableArray<ImmutableArray<CustomModifier>> parameterRefCustomModifiers, 47ImmutableArray<CustomModifier> callingConventionModifiers, 62ImmutableArray<CustomModifier> refCustomModifiers, 63ImmutableArray<ImmutableArray<CustomModifier>> paramRefCustomModifiers)
Symbols\MemberSignatureComparer.cs (6)
568ImmutableArray<CustomModifier> refCustomModifiers1; 573ImmutableArray<CustomModifier> refCustomModifiers2; 839private static bool HaveSameCustomModifiers(ImmutableArray<CustomModifier> customModifiers1, TypeMap? typeMap1, ImmutableArray<CustomModifier> customModifiers2, TypeMap? typeMap2) 845private static ImmutableArray<CustomModifier> SubstituteModifiers(TypeMap? typeMap, ImmutableArray<CustomModifier> customModifiers)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
398static (TypeWithAnnotations, bool madeChanges) handle(ref DynamicTypeDecoder decoder, RefKind refKind, ImmutableArray<CustomModifier> refCustomModifiers, TypeWithAnnotations typeWithAnnotations)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (2)
303private static bool CustomModifiersMatch(ImmutableArray<CustomModifier> candidateCustomModifiers, ImmutableArray<ModifierInfo<TypeSymbol>> targetCustomModifiers) 323CustomModifier candidateCustomModifier = candidateCustomModifiers[i];
Symbols\Metadata\PE\PEFieldSymbol.cs (3)
132private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 312ImmutableArray<CustomModifier> customModifiersArray = CSharpCustomModifier.Convert(fieldInfo.CustomModifiers); 386public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
778public override ImmutableArray<CustomModifier> RefCustomModifiers => Signature.ReturnParam.RefCustomModifiers;
Symbols\Metadata\PE\PEParameterSymbol.cs (4)
420private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 442public override ImmutableArray<CustomModifier> RefCustomModifiers 929public override ImmutableArray<CustomModifier> RefCustomModifiers 933return ImmutableArray<CustomModifier>.Empty;
Symbols\Metadata\PE\PEPropertySymbol.cs (4)
690public override ImmutableArray<CustomModifier> RefCustomModifiers 692get { return ImmutableArray<CustomModifier>.Empty; } 1072private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1090public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\MethodSymbol.cs (1)
383public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\NativeIntegerTypeSymbol.cs (5)
320internal override ImmutableArray<CustomModifier> SubstituteCustomModifiers(ImmutableArray<CustomModifier> customModifiers) 370public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingMethod.RefCustomModifiers; 423public override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingParameter.RefCustomModifiers; 474public override ImmutableArray<CustomModifier> RefCustomModifiers => UnderlyingProperty.RefCustomModifiers;
Symbols\ParameterSymbol.cs (1)
69public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\PropertySymbol.cs (1)
96public abstract ImmutableArray<CustomModifier> RefCustomModifiers { get; }
Symbols\PublicModel\ArrayTypeSymbol.cs (1)
64ImmutableArray<CustomModifier> IArrayTypeSymbol.CustomModifiers => _underlying.ElementTypeWithAnnotations.CustomModifiers;
Symbols\PublicModel\FieldSymbol.cs (2)
36ImmutableArray<CustomModifier> IFieldSymbol.RefCustomModifiers => _underlying.RefCustomModifiers; 53ImmutableArray<CustomModifier> IFieldSymbol.CustomModifiers
Symbols\PublicModel\MethodSymbol.cs (2)
250ImmutableArray<CustomModifier> IMethodSymbol.ReturnTypeCustomModifiers 258ImmutableArray<CustomModifier> IMethodSymbol.RefCustomModifiers
Symbols\PublicModel\NamedTypeSymbol.cs (1)
94ImmutableArray<CustomModifier> INamedTypeSymbol.GetTypeArgumentCustomModifiers(int ordinal)
Symbols\PublicModel\ParameterSymbol.cs (2)
41ImmutableArray<CustomModifier> IParameterSymbol.CustomModifiers 46ImmutableArray<CustomModifier> IParameterSymbol.RefCustomModifiers
Symbols\PublicModel\PointerTypeSymbol.cs (1)
47ImmutableArray<CustomModifier> IPointerTypeSymbol.CustomModifiers
Symbols\PublicModel\PropertySymbol.cs (2)
96ImmutableArray<CustomModifier> IPropertySymbol.TypeCustomModifiers 101ImmutableArray<CustomModifier> IPropertySymbol.RefCustomModifiers
Symbols\ReducedExtensionMethodSymbol.cs (2)
503public override ImmutableArray<CustomModifier> RefCustomModifiers 643public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Retargeting\RetargetingFieldSymbol.cs (1)
75public override ImmutableArray<CustomModifier> RefCustomModifiers =>
Symbols\Retargeting\RetargetingMethodSymbol.cs (2)
40private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 143public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Retargeting\RetargetingParameterSymbol.cs (2)
20private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 55public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Retargeting\RetargetingPropertySymbol.cs (2)
27private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 80public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Retargeting\RetargetingSymbolTranslator.cs (12)
713internal ImmutableArray<CustomModifier> RetargetModifiers(ImmutableArray<CustomModifier> oldModifiers, out bool modifiersHaveChanged) 715ArrayBuilder<CustomModifier> newModifiers = null; 719var oldModifier = oldModifiers[i]; 727newModifiers = ArrayBuilder<CustomModifier>.GetInstance(oldModifiers.Length); 767ImmutableArray<ImmutableArray<CustomModifier>> newParamModifiers = default; 773var newParameterCustomModifiersBuilder = ArrayBuilder<ImmutableArray<CustomModifier>>.GetInstance(paramCount); 1129internal ImmutableArray<CustomModifier> RetargetModifiers( 1130ImmutableArray<CustomModifier> oldModifiers, 1131ref ImmutableArray<CustomModifier> lazyCustomModifiers) 1136ImmutableArray<CustomModifier> newModifiers = this.RetargetModifiers(oldModifiers, out modifiersHaveChanged); 1137ImmutableInterlocked.InterlockedCompareExchange(ref lazyCustomModifiers, newModifiers, default(ImmutableArray<CustomModifier>));
Symbols\SignatureOnlyMethodSymbol.cs (3)
31private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 45ImmutableArray<CustomModifier> refCustomModifiers, 85public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } }
Symbols\SignatureOnlyParameterSymbol.cs (3)
18private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 25ImmutableArray<CustomModifier> refCustomModifiers, 42public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } }
Symbols\SignatureOnlyPropertySymbol.cs (3)
26private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 36ImmutableArray<CustomModifier> refCustomModifiers, 54public override ImmutableArray<CustomModifier> RefCustomModifiers { get { return _refCustomModifiers; } }
Symbols\Source\CustomModifierUtils.cs (7)
25out ImmutableArray<CustomModifier> customModifiers, 43destinationMethod.RefKind != RefKind.None ? constructedSourceMethod.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 146destinationParameter.RefKind != RefKind.None ? sourceParameter.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty, 158internal static bool HasInAttributeModifier(this ImmutableArray<CustomModifier> modifiers) 163internal static bool HasRequiresLocationAttributeModifier(this ImmutableArray<CustomModifier> modifiers) 168internal static bool HasIsExternalInitModifier(this ImmutableArray<CustomModifier> modifiers) 173internal static bool HasOutAttributeModifier(this ImmutableArray<CustomModifier> modifiers)
Symbols\Source\LambdaParameterSymbol.cs (2)
39public override ImmutableArray<CustomModifier> RefCustomModifiers 41get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\LambdaSymbol.cs (2)
167public override ImmutableArray<CustomModifier> RefCustomModifiers 169get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\LocalFunctionSymbol.cs (2)
343public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Source\ParameterHelpers.cs (8)
90ImmutableArray<CustomModifier> customModifiers = refKind switch 95_ => ImmutableArray<CustomModifier>.Empty 986internal static ImmutableArray<CustomModifier> ConditionallyCreateInModifiers(RefKind refKind, bool addRefReadOnlyModifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 994return ImmutableArray<CustomModifier>.Empty; 998internal static ImmutableArray<CustomModifier> CreateInModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1004private static ImmutableArray<CustomModifier> CreateRefReadonlyParameterModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1010internal static ImmutableArray<CustomModifier> CreateOutModifiers(Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax) 1015private static ImmutableArray<CustomModifier> CreateModifiers(WellKnownType modifier, Binder binder, BindingDiagnosticBag diagnostics, SyntaxNode syntax)
Symbols\Source\SourceClonedParameterSymbol.cs (1)
123public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourceComplexParameterSymbol.cs (6)
1521public abstract override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 1715public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty; 1720private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 1728ImmutableArray<CustomModifier> refCustomModifiers, 1747public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers;
Symbols\Source\SourceDelegateClonedParameterSymbolForBeginAndEndInvoke.cs (2)
29internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams)
Symbols\Source\SourceDelegateMethodSymbol.cs (4)
253private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 287_refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 344public override ImmutableArray<CustomModifier> RefCustomModifiers => _refCustomModifiers; 417public override ImmutableArray<CustomModifier> RefCustomModifiers => _invoke.RefCustomModifiers;
Symbols\Source\SourceEventAccessorSymbol.cs (2)
170public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 174return ImmutableArray<CustomModifier>.Empty; // Same as base, but this is clear and explicit.
Symbols\Source\SourceFieldSymbol.cs (5)
78protected ImmutableArray<CustomModifier> RequiredCustomModifiers 84return ImmutableArray<CustomModifier>.Empty; 88return ImmutableArray.Create<CustomModifier>( 96public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceMemberContainerSymbol.cs (12)
4305ImmutableArray<CustomModifier>.Empty, 4314ImmutableArray<CustomModifier>.Empty, 4353ImmutableArray<CustomModifier>.Empty, 4362ImmutableArray<CustomModifier>.Empty, 4402ImmutableArray<CustomModifier>.Empty, 4410refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 4465refCustomModifiers: ImmutableArray<CustomModifier>.Empty, 4542ImmutableArray<CustomModifier>.Empty, 4639ImmutableArray<CustomModifier>.Empty, 4668ImmutableArray<CustomModifier>.Empty, 4729ImmutableArray<CustomModifier>.Empty, 4738ImmutableArray<CustomModifier>.Empty,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
790public override ImmutableArray<CustomModifier> RefCustomModifiers 794return ImmutableArray<CustomModifier>.Empty;
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (3)
20private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 85_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 211public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourceParameterSymbol.cs (5)
58ImmutableArray<CustomModifier> inModifiers = ParameterHelpers.ConditionallyCreateInModifiers(refKind, addRefReadOnlyModifier, context, declarationDiagnostics, syntax); 118internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams) 123internal SourceParameterSymbol WithCustomModifiersAndParamsCore(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams)
Symbols\Source\SourceParameterSymbolBase.cs (2)
132internal abstract ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams);
Symbols\Source\SourcePropertyAccessorSymbol.cs (4)
22private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 265_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 394var modifiers = ImmutableArray.Create<CustomModifier>( 411public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.cs (2)
25internal override ParameterSymbol WithCustomModifiersAndParams(TypeSymbol newType, ImmutableArray<CustomModifier> newCustomModifiers, ImmutableArray<CustomModifier> newRefCustomModifiers, bool newIsParams)
Symbols\Source\SourcePropertySymbolBase.cs (4)
49private ImmutableArray<CustomModifier> _lazyRefCustomModifiers; 204_lazyRefCustomModifiers = ImmutableArray<CustomModifier>.Empty; 249_lazyRefCustomModifiers = _refKind != RefKind.None ? overriddenOrImplementedProperty.RefCustomModifiers : ImmutableArray<CustomModifier>.Empty; 673public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
78public override ImmutableArray<CustomModifier> RefCustomModifiers 80get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Source\ThisParameterSymbol.cs (2)
88public sealed override ImmutableArray<CustomModifier> RefCustomModifiers 90get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\SubstitutedFieldSymbol.cs (1)
108public override ImmutableArray<CustomModifier> RefCustomModifiers =>
Symbols\SubstitutedMethodSymbol.cs (1)
241public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\SubstitutedParameterSymbol.cs (1)
72public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\SubstitutedPropertySymbol.cs (1)
68public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Symbol.cs (4)
1266internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType) 1271foreach (CustomModifier modifier in customModifiers) 1355internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<CustomModifier> modifiers, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) 1357foreach (var modifier in modifiers)
Symbols\SymbolExtensions.cs (5)
488out ImmutableArray<CustomModifier> refCustomModifiers) 496refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 514refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 520refCustomModifiers = ImmutableArray<CustomModifier>.Empty; 531refCustomModifiers = ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (2)
37public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (2)
49public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
55public override ImmutableArray<CustomModifier> RefCustomModifiers 59return ImmutableArray<CustomModifier>.Empty; // since RefKind is always None.
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
120public override ImmutableArray<CustomModifier> RefCustomModifiers => _property.RefCustomModifiers;
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (2)
188public override ImmutableArray<CustomModifier> RefCustomModifiers 190get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
120public override ImmutableArray<CustomModifier> RefCustomModifiers 122get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (2)
31public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbol.cs (2)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (2)
219public override ImmutableArray<CustomModifier> RefCustomModifiers 221get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
74public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (2)
163public override ImmutableArray<CustomModifier> RefCustomModifiers 165get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (2)
153public override ImmutableArray<CustomModifier> RefCustomModifiers 155get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (4)
275public override ImmutableArray<CustomModifier> RefCustomModifiers 279return ImmutableArray<CustomModifier>.Empty; 498public override ImmutableArray<CustomModifier> RefCustomModifiers 500get { return ImmutableArray<CustomModifier>.Empty; }
Symbols\Synthesized\SynthesizedLambdaCacheFieldSymbol.cs (2)
38public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (7)
56public abstract override ImmutableArray<CustomModifier> RefCustomModifiers { get; } 263ImmutableArray<CustomModifier> refCustomModifiers = default, 321public override ImmutableArray<CustomModifier> RefCustomModifiers 323get { return ImmutableArray<CustomModifier>.Empty; } 336private readonly ImmutableArray<CustomModifier> _refCustomModifiers; 352ImmutableArray<CustomModifier> refCustomModifiers, 369public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
238public override ImmutableArray<CustomModifier> RefCustomModifiers
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
169public override ImmutableArray<CustomModifier> RefCustomModifiers 173return ImmutableArray<CustomModifier>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (2)
149public override ImmutableArray<CustomModifier> RefCustomModifiers 153return ImmutableArray<CustomModifier>.Empty;
Symbols\Tuples\TupleErrorFieldSymbol.cs (2)
159public override ImmutableArray<CustomModifier> RefCustomModifiers => ImmutableArray<CustomModifier>.Empty;
Symbols\Tuples\TupleFieldSymbol.cs (1)
127public sealed override ImmutableArray<CustomModifier> RefCustomModifiers => _underlyingField.RefCustomModifiers;
Symbols\TypeSymbolExtensions.cs (1)
817foreach (var customModifier in typeWithAnnotationsOpt.CustomModifiers)
Symbols\TypeWithAnnotations.cs (25)
85internal static TypeWithAnnotations Create(TypeSymbol typeSymbol, NullableAnnotation nullableAnnotation = NullableAnnotation.Oblivious, ImmutableArray<CustomModifier> customModifiers = default) 168private static TypeWithAnnotations CreateNonLazyType(TypeSymbol typeSymbol, NullableAnnotation nullableAnnotation, ImmutableArray<CustomModifier> customModifiers) 178private static TypeWithAnnotations CreateLazySubstitutedType(TypeSymbol substitutedTypeSymbol, ImmutableArray<CustomModifier> customModifiers, TypeParameterSymbol typeParameter) 250public TypeWithAnnotations WithModifiers(ImmutableArray<CustomModifier> customModifiers) => 269public ImmutableArray<CustomModifier> CustomModifiers => _extensions.CustomModifiers; 567public TypeWithAnnotations WithTypeAndModifiers(TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) => 840internal static readonly Extensions Default = new NonLazyType(customModifiers: ImmutableArray<CustomModifier>.Empty); 842internal static Extensions Create(ImmutableArray<CustomModifier> customModifiers) 854internal abstract ImmutableArray<CustomModifier> CustomModifiers { get; } 859internal abstract TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers); 873internal abstract TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers); 884private readonly ImmutableArray<CustomModifier> _customModifiers; 886public NonLazyType(ImmutableArray<CustomModifier> customModifiers) 895internal override ImmutableArray<CustomModifier> CustomModifiers => _customModifiers; 907internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 914internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) 956private readonly ImmutableArray<CustomModifier> _customModifiers; 962public LazySubstitutedType(ImmutableArray<CustomModifier> customModifiers, TypeParameterSymbol typeParameter) 1010internal override ImmutableArray<CustomModifier> CustomModifiers => _customModifiers; 1012internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 1017internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers) 1110internal override ImmutableArray<CustomModifier> CustomModifiers => ImmutableArray<CustomModifier>.Empty; 1112internal override TypeWithAnnotations WithModifiers(TypeWithAnnotations type, ImmutableArray<CustomModifier> customModifiers) 1128internal override TypeWithAnnotations WithTypeAndModifiers(TypeWithAnnotations type, TypeSymbol typeSymbol, ImmutableArray<CustomModifier> customModifiers)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
119public override ImmutableArray<CustomModifier> RefCustomModifiers
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenFunctionPointersTests.cs (5)
705static void verifyMod(int length, string expectedTypeName, ImmutableArray<CustomModifier> customMods) 708var firstMod = customMods[0]; 715var inMod = customMods[1]; 7670var testMod = CSharpCustomModifier.CreateOptional(comp1.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvTest`1")); 7755var testMod = CSharpCustomModifier.CreateOptional(comp2.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvTest"));
Emit\EmitMetadataTests.cs (1)
560CustomModifier mod = f2.TypeWithAnnotations.CustomModifiers[0];
Emit\InAttributeModifierTests.cs (2)
4563private void AssertSingleInAttributeRequiredModifier(ImmutableArray<CustomModifier> modifiers) 4565var modifier = modifiers.Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefReadonlyParameterTests.cs (1)
107var mod = Assert.Single(parameter.RefCustomModifiers);
Semantics\RecordTests.cs (2)
12489static void verifyReturnType(MethodSymbol method, params CustomModifier[] expectedModifiers) 12496static void verifyParameterType(MethodSymbol method, params CustomModifier[] expectedModifiers)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
Symbols\FunctionPointerTypeSymbolTests.cs (11)
1981var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)); 1982var thiscallMod = CSharpCustomModifier.CreateOptional(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvThiscall")); 1983var stdcallMod = CSharpCustomModifier.CreateOptional(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvStdcall")); 2042(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2086var callConvMod = CSharpCustomModifier.CreateOptional(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConv")); 2109(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> customModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged) 2137var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)); 2138var thiscallMod = CSharpCustomModifier.CreateOptional(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvThiscall")); 2139var stdcallMod = CSharpCustomModifier.CreateOptional(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvStdcall")); 2168(FunctionPointerTypeSymbol NoRef, FunctionPointerTypeSymbol ByRef) createTypeSymbol(ImmutableArray<CustomModifier> typeCustomModifiers, ImmutableArray<CustomModifier> refCustomModifiers, CallingConvention callingConvention = CallingConvention.Unmanaged)
Symbols\Metadata\PE\LoadingFields.cs (1)
104CustomModifier mod = f6.TypeWithAnnotations.CustomModifiers[0];
Symbols\Retargeting\RetargetingTests.cs (1)
910static TypeSymbol getModifierTypeSymbol(ImmutableArray<CustomModifier> modifiers)
Symbols\Source\CustomModifierCopyTests.cs (1)
476private static void CheckCustomModifier(bool expectCustomModifier, ImmutableArray<CustomModifier> customModifiers)
Symbols\Source\FieldTests.cs (1)
155CustomModifier mod = n2.TypeWithAnnotations.CustomModifiers[0];
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
746public static NamedTypeSymbol Modifier(this CustomModifier m)
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
2370protected static bool CustomModifiersEquivalent(CustomModifier oldModifier, CustomModifier newModifier, bool exact) 2374protected static bool CustomModifiersEquivalent(ImmutableArray<CustomModifier> oldModifiers, ImmutableArray<CustomModifier> newModifiers, bool exact)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedFieldSymbol.cs (2)
28public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 30public ImmutableArray<CustomModifier> CustomModifiers => _symbol.CustomModifiers;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedMethodSymbol.cs (2)
99public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 101public ImmutableArray<CustomModifier> ReturnTypeCustomModifiers => _symbol.ReturnTypeCustomModifiers;
MetadataAsSource\AbstractMetadataAsSourceService.WrappedNamedTypeSymbol.cs (1)
88public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (2)
56public ImmutableArray<CustomModifier> RefCustomModifiers => _symbol.RefCustomModifiers; 58public ImmutableArray<CustomModifier> TypeCustomModifiers => _symbol.TypeCustomModifiers;
Microsoft.CodeAnalysis.VisualBasic (310)
Binding\Binder_XmlLiterals.vb (5)
374Return ArrayTypeSymbol.CreateSZArray(elementType, ImmutableArray(Of CustomModifier).Empty, compilation:=Compilation) 1697Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 1703Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1961Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1967Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Emit\ArrayTypeSymbolAdapter.vb (1)
21Dim customModifiers As ImmutableArray(Of CustomModifier) = AdaptedArrayTypeSymbol.CustomModifiers
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (8)
344Private Function VisitCustomModifiers(modifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 348Private Function VisitCustomModifier(modifier As CustomModifier) As CustomModifier 618Private Function VisitCustomModifiers(modifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 622Private Function VisitCustomModifier(modifier As CustomModifier) As CustomModifier
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (2)
120_payloadType = ArrayTypeSymbol.CreateVBArray(payloadElementType, ImmutableArray(Of CustomModifier).Empty, 1, methodBodyFactory.Compilation.Assembly) 243ArrayTypeSymbol.CreateVBArray(_payloadType, ImmutableArray(Of CustomModifier).Empty, 1, _methodBodyFactory.Compilation.Assembly)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
124Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier)
Semantics\Conversions.vb (1)
4549Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Semantics\Operators.vb (2)
3314Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 3320Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
571Private Sub AddCustomModifiersIfRequired(customModifiers As ImmutableArray(Of CustomModifier), Optional leadingSpace As Boolean = True, Optional trailingSpace As Boolean = False)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (4)
65Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 67Return ImmutableArray(Of CustomModifier).Empty 71Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 73Return ImmutableArray(Of CustomModifier).Empty
Symbols\ArrayTypeSymbol.vb (16)
26Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol 33Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 43customModifiers As ImmutableArray(Of CustomModifier), 67Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol 71Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 100Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 334Dim [mod] As ImmutableArray(Of CustomModifier) = CustomModifiers 335Dim otherMod As ImmutableArray(Of CustomModifier) = other.CustomModifiers 442Private ReadOnly Property IArrayTypeSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IArrayTypeSymbol.CustomModifiers 478Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 481Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol) 490Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 551Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol, interfaces As ImmutableArray(Of NamedTypeSymbol)) 600Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 630Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 654customModifiers As ImmutableArray(Of CustomModifier),
Symbols\CustomModifier.vb (5)
42Friend Shared Function CreateOptional(modifier As NamedTypeSymbol) As CustomModifier 46Friend Shared Function CreateRequired(modifier As NamedTypeSymbol) As CustomModifier 50Friend Shared Function Convert(customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As ImmutableArray(Of CustomModifier) 52Return ImmutableArray(Of CustomModifier).Empty 57Private Shared Function Convert(customModifier As ModifierInfo(Of TypeSymbol)) As CustomModifier
Symbols\ErrorMethodSymbol.vb (4)
220Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 222Return ImmutableArray(Of CustomModifier).Empty 226Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 228Return ImmutableArray(Of CustomModifier).Empty
Symbols\ErrorTypeSymbol.vb (1)
194Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\FieldSymbol.vb (4)
71Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 464Private ReadOnly Property IFieldSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IFieldSymbol.RefCustomModifiers 466Return ImmutableArray(Of CustomModifier).Empty 494Private ReadOnly Property IFieldSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IFieldSymbol.CustomModifiers
Symbols\InstanceErrorTypeSymbol.vb (1)
128Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\InstanceTypeSymbol.vb (1)
33Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (2)
248Private Shared Function CustomModifiersMatch(candidateReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier), targetReturnTypeCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As Boolean 262Dim candidateCustomModifier As CustomModifier = candidateReturnTypeCustomModifiers(i)
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
41Private _lazyCustomModifiers As ImmutableArray(Of CustomModifier) 404Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
981Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 987Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Metadata\PE\PEParameterSymbol.vb (12)
81refCustomModifiers As ImmutableArray(Of CustomModifier), 89customModifiers As ImmutableArray(Of CustomModifier) 207Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 208Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 214refCustomModifiers As ImmutableArray(Of CustomModifier), 222customModifiers As ImmutableArray(Of CustomModifier) 251Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 257Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 502Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 504Return ImmutableArray(Of CustomModifier).Empty 508Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 510Return ImmutableArray(Of CustomModifier).Empty
Symbols\Metadata\PE\PEPropertySymbol.vb (8)
295Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 297Return ImmutableArray(Of CustomModifier).Empty 301Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 303Return ImmutableArray(Of CustomModifier).Empty 644Private ReadOnly _typeCustomModifiers As ImmutableArray(Of CustomModifier) 645Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 665Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 671Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\MethodSignatureComparer.vb (5)
442refCustomModifiers1 As ImmutableArray(Of CustomModifier), 446refCustomModifiers2 As ImmutableArray(Of CustomModifier), 485Private Shared Function SubstituteModifiers(typeSubstitution As TypeSubstitution, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 674Private Shared Function GetRefModifiers(typeSubstitution As TypeSubstitution, param As ParameterSymbol) As ImmutableArray(Of CustomModifier)
Symbols\MethodSymbol.vb (4)
158Public MustOverride ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 163Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1152Private ReadOnly Property IMethodSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.RefCustomModifiers 1158Private ReadOnly Property IMethodSymbol_ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) Implements IMethodSymbol.ReturnTypeCustomModifiers
Symbols\NamedTypeSymbol.vb (4)
59Public MustOverride Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 61Friend Function GetEmptyTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 66Return ImmutableArray(Of CustomModifier).Empty 1373Private Function INamedTypeSymbol_GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) Implements INamedTypeSymbol.GetTypeArgumentCustomModifiers
Symbols\ParameterSymbol.vb (4)
112Public MustOverride ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 117Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 348Private ReadOnly Property IParameterSymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IParameterSymbol.RefCustomModifiers 354Private ReadOnly Property IParameterSymbol_CustomModifiers As ImmutableArray(Of CustomModifier) Implements IParameterSymbol.CustomModifiers
Symbols\PointerTypeSymbol.vb (2)
18Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 20Public Sub New(pointedAtType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier))
Symbols\PropertySymbol.vb (4)
59Public MustOverride ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 64Public MustOverride ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 627Private ReadOnly Property IPropertySymbol_RefCustomModifiers As ImmutableArray(Of CustomModifier) Implements IPropertySymbol.RefCustomModifiers 633Private ReadOnly Property IPropertySymbol_TypeCustomModifiers As ImmutableArray(Of CustomModifier) Implements IPropertySymbol.TypeCustomModifiers
Symbols\ReducedExtensionMethodSymbol.vb (4)
527Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 533Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 907Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 913Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Retargeting\RetargetingFieldSymbol.vb (2)
35Private _lazyCustomModifiers As ImmutableArray(Of CustomModifier) 88Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Retargeting\RetargetingMethodSymbol.vb (2)
168Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 174Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Retargeting\RetargetingParameterSymbol.vb (2)
78Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 84Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
248Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 254Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (10)
593Dim newModifiers As ImmutableArray(Of CustomModifier) = RetargetModifiers(type.CustomModifiers, modifiersHaveChanged) 606Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef modifiersHaveChanged As Boolean) As ImmutableArray(Of CustomModifier) 607Dim newModifiers As ArrayBuilder(Of CustomModifier) = Nothing 614newModifiers = ArrayBuilder(Of CustomModifier).GetInstance(oldModifiers.Length) 631Friend Function RetargetModifiers(oldModifiers As ImmutableArray(Of CustomModifier), ByRef lazyCustomModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 643oldTypeModifiers As ImmutableArray(Of CustomModifier), 644oldRefModifiers As ImmutableArray(Of CustomModifier),
Symbols\SignatureOnlyMethodSymbol.vb (6)
29Private ReadOnly _returnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 30Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 35ByVal returnsByRef As Boolean, ByVal returnType As TypeSymbol, ByVal returnTypeCustomModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier), 94Public Overrides ReadOnly Property ReturnTypeCustomModifiers() As ImmutableArray(Of CustomModifier) 100Public Overrides ReadOnly Property RefCustomModifiers() As ImmutableArray(Of CustomModifier)
Symbols\SignatureOnlyParameterSymbol.vb (6)
19Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 20Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 28ByVal customModifiers As ImmutableArray(Of CustomModifier), 29ByVal refCustomModifiers As ImmutableArray(Of CustomModifier), 52Public Overrides ReadOnly Property CustomModifiers() As ImmutableArray(Of CustomModifier) 58Public Overrides ReadOnly Property RefCustomModifiers() As ImmutableArray(Of CustomModifier)
Symbols\SignatureOnlyPropertySymbol.vb (6)
28Private ReadOnly _typeCustomModifiers As ImmutableArray(Of CustomModifier) 29Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 40typeCustomModifiers As ImmutableArray(Of CustomModifier), 41refCustomModifiers As ImmutableArray(Of CustomModifier), 105Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 111Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Source\CustomEventAccessorSymbol.vb (2)
105Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 108Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\CustomModifierUtils.vb (2)
121If(thisParam.IsByRef, overriddenParam.RefCustomModifiers, ImmutableArray(Of CustomModifier).Empty)) 129Friend Shared Function HasIsExternalInitModifier(modifiers As ImmutableArray(Of CustomModifier)) As Boolean
Symbols\Source\LambdaParameterSymbol.vb (4)
167Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 169Return ImmutableArray(Of CustomModifier).Empty 173Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 175Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\LambdaSymbol.vb (4)
306Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 308Return ImmutableArray(Of CustomModifier).Empty 312Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 314Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\MeParameterSymbol.vb (4)
90Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 92Return ImmutableArray(Of CustomModifier).Empty 96Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 98Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceClonedParameterSymbol.vb (12)
76Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 82Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 161Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 169Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 170Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 177customModifiers As ImmutableArray(Of CustomModifier), 178refCustomModifiers As ImmutableArray(Of CustomModifier) 194Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 200Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 230Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceComplexParameterSymbol.vb (14)
393Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 395Return ImmutableArray(Of CustomModifier).Empty 399Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 401Return ImmutableArray(Of CustomModifier).Empty 405Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 416Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 417Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 428customModifiers As ImmutableArray(Of CustomModifier), 429refCustomModifiers As ImmutableArray(Of CustomModifier) 440Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 446Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 452Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceFieldSymbol.vb (2)
151Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 153Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceMethodSymbol.vb (8)
1266Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1268Return ImmutableArray(Of CustomModifier).Empty 1311Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1316Return ImmutableArray(Of CustomModifier).Empty 2150ImmutableArray(Of CustomModifier).Empty, 2151ImmutableArray(Of CustomModifier).Empty, 2166returnTypeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 2167refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty,
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (7)
952Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 1302Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 1308Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1456Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 1462Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 1850Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 1856Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Source\SourceParameterSymbol.vb (2)
85Public MustOverride Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 87Public MustOverride Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Source\SourceParameterSymbolBase.vb (2)
77Friend MustOverride Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
346Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 353Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers)
Symbols\Source\SourcePropertySymbol.vb (8)
326Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 328Return ImmutableArray(Of CustomModifier).Empty 801ImmutableArray(Of CustomModifier).Empty, 802ImmutableArray(Of CustomModifier).Empty, 816typeCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 817refCustomModifiers:=ImmutableArray(Of CustomModifier).Empty, 965Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 970Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SourceSimpleParameterSymbol.vb (14)
150Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 152Return ImmutableArray(Of CustomModifier).Empty 156Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 158Return ImmutableArray(Of CustomModifier).Empty 162Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 173Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 174Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 182customModifiers As ImmutableArray(Of CustomModifier), 183refCustomModifiers As ImmutableArray(Of CustomModifier) 194Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 200Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 206Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
145Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 147Return ImmutableArray(Of CustomModifier).Empty
Symbols\Source\SynthesizedFieldSymbol.vb (2)
101Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 103Return ImmutableArray(Of CustomModifier).Empty
Symbols\SubstitutedErrorType.vb (1)
127Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedFieldSymbol.vb (1)
168Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedMethodSymbol.vb (2)
315Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 321Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedNamedType.vb (3)
734Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 899Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier) 995Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedParameterSymbol.vb (2)
170Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 182Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SubstitutedPropertySymbol.vb (2)
224Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 230Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Symbol.vb (3)
1085customModifiers As ImmutableArray(Of CustomModifier), 1090For Each modifier As CustomModifier In customModifiers 1125Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (2)
33Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 35Return ImmutableArray(Of CustomModifier).Empty
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (4)
365Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 367Return ImmutableArray(Of CustomModifier).Empty 371Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 373Return ImmutableArray(Of CustomModifier).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (4)
314Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 316Return ImmutableArray(Of CustomModifier).Empty 320Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 322Return ImmutableArray(Of CustomModifier).Empty
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (2)
24Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 89Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (4)
120Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 122Return ImmutableArray(Of CustomModifier).Empty 144Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 146Return ImmutableArray(Of CustomModifier).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (2)
215Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 221Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (13)
51Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 53Return ImmutableArray(Of CustomModifier).Empty 57Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 59Return ImmutableArray(Of CustomModifier).Empty 295customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier) 332ImmutableArray(Of CustomModifier).Empty) ' Never ByRef 379Private ReadOnly _customModifiers As ImmutableArray(Of CustomModifier) 380Private ReadOnly _refCustomModifiers As ImmutableArray(Of CustomModifier) 393customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) 406Public NotOverridable Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 412Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\SynthesizedSymbols\SynthesizedPropertyBase.vb (4)
38Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 40Return ImmutableArray(Of CustomModifier).Empty 44Public NotOverridable Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 46Return ImmutableArray(Of CustomModifier).Empty
Symbols\Tuples\TupleFieldSymbol.vb (1)
74Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Tuples\TupleMethodSymbol.vb (2)
83Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 89Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Tuples\TuplePropertySymbol.vb (2)
40Public Overrides ReadOnly Property TypeCustomModifiers As ImmutableArray(Of CustomModifier) 46Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Symbols\Tuples\TupleTypeSymbol.vb (1)
212Public Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\TypeSubstitution.vb (9)
144Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 151Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 187Public Function GetTypeArgumentsCustomModifiersFor(originalDefinition As TypeParameterSymbol) As ImmutableArray(Of CustomModifier) 207Return ImmutableArray(Of CustomModifier).Empty 861Public Function SubstituteCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 869Public Function SubstituteCustomModifiers(customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 880Dim builder = ArrayBuilder(Of CustomModifier).GetInstance(customModifiers.Length)
Symbols\TypeSymbolExtensions.vb (2)
274Friend Function AreSameCustomModifiers([mod] As ImmutableArray(Of CustomModifier), otherMod As ImmutableArray(Of CustomModifier)) As Boolean
Symbols\TypeWithModifiers.vb (3)
13Public ReadOnly CustomModifiers As ImmutableArray(Of CustomModifier) 15Public Sub New(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 24Me.CustomModifiers = ImmutableArray(Of CustomModifier).Empty
Symbols\UnboundGenericType.vb (1)
115Public NotOverridable Overrides Function GetTypeArgumentCustomModifiers(ordinal As Integer) As ImmutableArray(Of CustomModifier)
Symbols\WellKnownMembers.vb (1)
711Dim stringArray = ArrayTypeSymbol.CreateSZArray(stringType, ImmutableArray(Of CustomModifier).Empty, stringType.ContainingAssembly)
Symbols\Wrapped\WrappedParameterSymbol.vb (2)
103Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 109Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Attributes\AttributeTests.vb (6)
2182typeArg = ArrayTypeSymbol.CreateVBArray(classW, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2188typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2194typeArg = ArrayTypeSymbol.CreateVBArray(classYOfW, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2202typeArg = ArrayTypeSymbol.CreateVBArray(substNestedF, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=3, declaringAssembly:=m.ContainingAssembly) 2204typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly) 2211typeArg = ArrayTypeSymbol.CreateVBArray(typeArg, CType(Nothing, ImmutableArray(Of CustomModifier)), rank:=2, declaringAssembly:=m.ContainingAssembly)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (7)
Rewriters\LocalDeclarationRewriter.vb (1)
65ImmutableArray(Of CustomModifier).Empty,
Symbols\DisplayClassVariable.vb (2)
134Public Overrides ReadOnly Property CustomModifiers As ImmutableArray(Of CustomModifier) 136Return ImmutableArray(Of CustomModifier).Empty
Symbols\EEMethodSymbol.vb (4)
306Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 308Return ImmutableArray(Of CustomModifier).Empty 312Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 314Return ImmutableArray(Of CustomModifier).Empty
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
MockSymbols.vb (4)
622Public Overrides ReadOnly Property ReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier) 624Return ImmutableArray(Of CustomModifier).Empty 628Public Overrides ReadOnly Property RefCustomModifiers As ImmutableArray(Of CustomModifier) 630Return ImmutableArray(Of CustomModifier).Empty
Microsoft.CodeAnalysis.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (2)
95public ImmutableArray<CustomModifier> RefCustomModifiers 98public virtual ImmutableArray<CustomModifier> ReturnTypeCustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
92public ImmutableArray<CustomModifier> GetTypeArgumentCustomModifiers(int ordinal)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationArrayTypeSymbol.cs (1)
57public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationEventSymbol.cs (1)
62public static ImmutableArray<CustomModifier> TypeCustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationFieldSymbol.cs (2)
86public ImmutableArray<CustomModifier> RefCustomModifiers => []; 88public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationParameterSymbol.cs (2)
63public ImmutableArray<CustomModifier> RefCustomModifiers => []; 65public ImmutableArray<CustomModifier> CustomModifiers => [];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPointerTypeSymbol.cs (1)
33public ImmutableArray<CustomModifier> CustomModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (2)
85public ImmutableArray<CustomModifier> RefCustomModifiers => []; 87public ImmutableArray<CustomModifier> TypeCustomModifiers => [];