32 references to AllowedRequiredModifierType
Microsoft.CodeAnalysis.CSharp (32)
Symbols\ArrayTypeSymbol.cs (1)
458DeriveUseSiteInfoFromType(ref result, this.ElementTypeWithAnnotations, AllowedRequiredModifierType.None);
Symbols\EventSymbol.cs (1)
287if (DeriveUseSiteInfoFromType(ref result, this.TypeWithAnnotations, AllowedRequiredModifierType.None))
Symbols\FieldSymbol.cs (3)
356if (DeriveUseSiteInfoFromType(ref result, this.TypeWithAnnotations, RefKind == RefKind.None ? AllowedRequiredModifierType.System_Runtime_CompilerServices_Volatile : AllowedRequiredModifierType.None) || 357DeriveUseSiteInfoFromCustomModifiers(ref result, this.RefCustomModifiers, AllowedRequiredModifierType.None))
Symbols\MethodSymbol.cs (3)
958AllowedRequiredModifierType.System_Runtime_CompilerServices_IsExternalInit : 959AllowedRequiredModifierType.None) || 960DeriveUseSiteInfoFromCustomModifiers(ref result, this.RefCustomModifiers, AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute) ||
Symbols\NamedTypeSymbol.cs (1)
1387if (DeriveUseSiteInfoFromType(ref result, arg, AllowedRequiredModifierType.None))
Symbols\PointerTypeSymbol.cs (1)
290DeriveUseSiteInfoFromType(ref result, this.PointedAtTypeWithAnnotations, AllowedRequiredModifierType.None);
Symbols\PropertySymbol.cs (2)
403if (DeriveUseSiteInfoFromType(ref result, this.TypeWithAnnotations, AllowedRequiredModifierType.None) || 404DeriveUseSiteInfoFromCustomModifiers(ref result, this.RefCustomModifiers, AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute) ||
Symbols\Symbol.cs (20)
1228internal bool DeriveUseSiteInfoFromType(ref UseSiteInfo<AssemblySymbol> result, TypeWithAnnotations type, AllowedRequiredModifierType allowedRequiredModifierType) 1236return DeriveUseSiteInfoFromType(ref result, param.TypeWithAnnotations, AllowedRequiredModifierType.None) || 1239AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute | AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute : 1240AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute); 1266internal bool DeriveUseSiteInfoFromCustomModifiers(ref UseSiteInfo<AssemblySymbol> result, ImmutableArray<CustomModifier> customModifiers, AllowedRequiredModifierType allowedRequiredModifierType) 1268AllowedRequiredModifierType requiredModifiersFound = AllowedRequiredModifierType.None; 1277AllowedRequiredModifierType current = AllowedRequiredModifierType.None; 1279if ((allowedRequiredModifierType & AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute) != 0 && 1282current = AllowedRequiredModifierType.System_Runtime_InteropServices_InAttribute; 1284else if ((allowedRequiredModifierType & AllowedRequiredModifierType.System_Runtime_CompilerServices_Volatile) != 0 && 1287current = AllowedRequiredModifierType.System_Runtime_CompilerServices_Volatile; 1289else if ((allowedRequiredModifierType & AllowedRequiredModifierType.System_Runtime_CompilerServices_IsExternalInit) != 0 && 1292current = AllowedRequiredModifierType.System_Runtime_CompilerServices_IsExternalInit; 1294else if ((allowedRequiredModifierType & AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute) != 0 && 1297current = AllowedRequiredModifierType.System_Runtime_CompilerServices_OutAttribute; 1300if (current == AllowedRequiredModifierType.None || 1301(current != requiredModifiersFound && requiredModifiersFound != AllowedRequiredModifierType.None)) // At the moment we don't support applying different allowed modreqs to the same target.