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