2 types derived from CSharpCustomModifier
Microsoft.CodeAnalysis.CSharp (2)
Symbols\CustomModifier.cs (2)
73
private class OptionalCustomModifier :
CSharpCustomModifier
105
private class RequiredCustomModifier :
CSharpCustomModifier
49 references to CSharpCustomModifier
Microsoft.CodeAnalysis.CSharp (49)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
779
if (!actualUnmanagedCallingConventionTypes.Contains(((
CSharpCustomModifier
)expectedModifier).ModifierSymbol))
Compilation\CSharpCompilation.cs (1)
4102
return
CSharpCustomModifier
.CreateOptional(internalType);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (6)
458
var type = (NamedTypeSymbol?)Visit(((
CSharpCustomModifier
)modifier).ModifierSymbol);
462
CSharpCustomModifier
.CreateOptional(type) :
463
CSharpCustomModifier
.CreateRequired(type);
950
var translatedType = (NamedTypeSymbol)this.Visit(((
CSharpCustomModifier
)modifier).ModifierSymbol);
953
CSharpCustomModifier
.CreateOptional(translatedType) :
954
CSharpCustomModifier
.CreateRequired(translatedType);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
247
var modifier =
CSharpCustomModifier
.CreateRequired(
Symbols\AbstractTypeMap.cs (6)
142
NamedTypeSymbol modifier = ((
CSharpCustomModifier
)customModifiers[i]).ModifierSymbol;
150
builder.Add(customModifiers[i].IsOptional ?
CSharpCustomModifier
.CreateOptional(substituted) :
CSharpCustomModifier
.CreateRequired(substituted));
153
modifier = ((
CSharpCustomModifier
)customModifiers[i]).ModifierSymbol;
158
builder.Add(customModifiers[i].IsOptional ?
CSharpCustomModifier
.CreateOptional(substituted) :
CSharpCustomModifier
.CreateRequired(substituted));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (8)
226
return
CSharpCustomModifier
.CreateOptional(specifierType);
327
return
CSharpCustomModifier
.CreateRequired(attributeType);
548
var returnType = TypeWithAnnotations.Create(retInfo.Type, customModifiers:
CSharpCustomModifier
.Convert(retInfo.CustomModifiers));
550
RefCustomModifiers =
CSharpCustomModifier
.Convert(retInfo.RefCustomModifiers);
567
var paramRefCustomMods =
CSharpCustomModifier
.Convert(param.RefCustomModifiers);
568
var paramType = TypeWithAnnotations.Create(param.Type, customModifiers:
CSharpCustomModifier
.Convert(param.CustomModifiers));
655
foreach (
CSharpCustomModifier
modifier in modifiersToSearch)
681
if (FunctionPointerTypeSymbol.IsCallingConventionModifier(((
CSharpCustomModifier
)modifier).ModifierSymbol))
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
326
!object.Equals(targetCustomModifier.Modifier, ((
CSharpCustomModifier
)candidateCustomModifier).ModifierSymbol))
Symbols\Metadata\PE\PEFieldSymbol.cs (3)
312
ImmutableArray<CustomModifier> customModifiersArray =
CSharpCustomModifier
.Convert(fieldInfo.CustomModifiers);
329
_packedFlags.SetIsVolatile(customModifiersArray.Any(static m => !m.IsOptional && ((
CSharpCustomModifier
)m).ModifierSymbol.SpecialType == SpecialType.System_Runtime_CompilerServices_IsVolatile));
340
ImmutableInterlocked.InterlockedInitialize(ref _lazyRefCustomModifiers,
CSharpCustomModifier
.Convert(fieldInfo.RefCustomModifiers));
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
390
var typeWithModifiers = TypeWithAnnotations.Create(type, customModifiers:
CSharpCustomModifier
.Convert(customModifiers));
437
_refCustomModifiers =
CSharpCustomModifier
.Convert(refCustomModifiers);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
275
var typeCustomModifiers =
CSharpCustomModifier
.Convert(returnInfo.CustomModifiers);
1087
_refCustomModifiers =
CSharpCustomModifier
.Convert(returnInfo.RefCustomModifiers);
Symbols\Metadata\PE\SymbolFactory.cs (1)
170
return TypeWithAnnotations.Create(type, NullableAnnotation.Oblivious,
CSharpCustomModifier
.Convert(customModifiers));
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
720
NamedTypeSymbol oldModifierSymbol = ((
CSharpCustomModifier
)oldModifier).ModifierSymbol;
732
CSharpCustomModifier
.CreateOptional(newModifierSymbol) :
733
CSharpCustomModifier
.CreateRequired(newModifierSymbol));
Symbols\Source\CustomModifierUtils.cs (4)
160
return modifiers.Any(static modifier => !modifier.IsOptional && ((
CSharpCustomModifier
)modifier).ModifierSymbol.IsWellKnownTypeInAttribute());
165
return modifiers.Any(static modifier => modifier.IsOptional && ((
CSharpCustomModifier
)modifier).ModifierSymbol.IsWellKnownTypeRequiresLocationAttribute());
170
return modifiers.Any(static modifier => !modifier.IsOptional && ((
CSharpCustomModifier
)modifier).ModifierSymbol.IsWellKnownTypeIsExternalInit());
175
return modifiers.Any(static modifier => !modifier.IsOptional && ((
CSharpCustomModifier
)modifier).ModifierSymbol.IsWellKnownTypeOutAttribute());
Symbols\Source\ParameterHelpers.cs (2)
1007
return ImmutableArray.Create(
CSharpCustomModifier
.CreateOptional(requiresLocationType));
1018
return ImmutableArray.Create(
CSharpCustomModifier
.CreateRequired(modifierType));
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
283
_refCustomModifiers = ImmutableArray.Create(
CSharpCustomModifier
.CreateRequired(modifierType));
Symbols\Source\SourceFieldSymbol.cs (1)
89
CSharpCustomModifier
.CreateRequired(this.ContainingAssembly.GetSpecialType(SpecialType.System_Runtime_CompilerServices_IsVolatile)));
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
122
_lazyRefCustomModifiers = ImmutableArray.Create(
CSharpCustomModifier
.CreateRequired(modifierType));
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
395
CSharpCustomModifier
.CreateRequired(isInitOnlyType));
Symbols\Source\SourcePropertySymbolBase.cs (1)
272
_lazyRefCustomModifiers = ImmutableArray.Create(
CSharpCustomModifier
.CreateRequired(modifierType));
Symbols\Symbol.cs (2)
1273
NamedTypeSymbol modifierType = ((
CSharpCustomModifier
)modifier).ModifierSymbol;
1359
if (((
CSharpCustomModifier
)modifier).ModifierSymbol.GetUnificationUseSiteDiagnosticRecursive(ref result, owner, ref checkedTypes))
Symbols\TypeSymbolExtensions.cs (1)
820
typeWithAnnotationsOpt: default, type: ((
CSharpCustomModifier
)customModifier).ModifierSymbol,