24 references to CreateOptional
Microsoft.CodeAnalysis.CSharp (9)
Compilation\CSharpCompilation.cs (1)
4161
return CSharpCustomModifier.
CreateOptional
(internalType);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
469
CSharpCustomModifier.
CreateOptional
(type) :
960
CSharpCustomModifier.
CreateOptional
(translatedType) :
Symbols\AbstractTypeMap.cs (2)
150
builder.Add(customModifiers[i].IsOptional ? CSharpCustomModifier.
CreateOptional
(substituted) : CSharpCustomModifier.CreateRequired(substituted));
158
builder.Add(customModifiers[i].IsOptional ? CSharpCustomModifier.
CreateOptional
(substituted) : CSharpCustomModifier.CreateRequired(substituted));
Symbols\CustomModifier.cs (1)
70
return customModifier.IsOptional ?
CreateOptional
(modifier) : CreateRequired(modifier);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
226
return CSharpCustomModifier.
CreateOptional
(specifierType);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
732
CSharpCustomModifier.
CreateOptional
(newModifierSymbol) :
Symbols\Source\ParameterHelpers.cs (1)
1205
return ImmutableArray.Create(CSharpCustomModifier.
CreateOptional
(requiresLocationType));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
7670
var testMod = CSharpCustomModifier.
CreateOptional
(comp1.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvTest`1"));
7755
var testMod = CSharpCustomModifier.
CreateOptional
(comp2.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvTest"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\RecordTests.cs (4)
12537
verifyReturnType(property.GetMethod, CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_Int32)));
12542
CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_UInt16)));
12545
CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_Byte)));
12547
CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_UInt16)));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
115919
var modifiers = ImmutableArray.Create(CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_Object)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\FunctionPointerTypeSymbolTests.cs (7)
1983
var objectMod = CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_Object));
1984
var thiscallMod = CSharpCustomModifier.
CreateOptional
(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvThiscall"));
1985
var stdcallMod = CSharpCustomModifier.
CreateOptional
(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvStdcall"));
2088
var callConvMod = CSharpCustomModifier.
CreateOptional
(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConv"));
2139
var objectMod = CSharpCustomModifier.
CreateOptional
(comp.GetSpecialType(SpecialType.System_Object));
2140
var thiscallMod = CSharpCustomModifier.
CreateOptional
(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvThiscall"));
2141
var stdcallMod = CSharpCustomModifier.
CreateOptional
(comp.GetTypeByMetadataName("System.Runtime.CompilerServices.CallConvStdcall"));
Symbols\Source\ModifierTests.cs (1)
153
var customModifiers = ImmutableArray.Create(CSharpCustomModifier.
CreateOptional
(intType));