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