52 references to Construct
Microsoft.CodeAnalysis.CSharp (52)
Binder\Binder_Expressions.cs (6)
2576
intType = nullableType.
Construct
(intType);
2577
indexType = nullableType.
Construct
(indexType);
2656
rangeType = nullableType.
Construct
(rangeType);
2683
indexType = nullableType.
Construct
(indexType);
7350
var type = GetWellKnownType(WellKnownType.System_ReadOnlySpan_T, diagnostics, node).
Construct
(GetSpecialType(SpecialType.System_Byte, diagnostics, node));
11025
accessType = GetSpecialType(SpecialType.System_Nullable_T, diagnostics, node).
Construct
(accessType);
Binder\Binder_TupleOperators.cs (1)
421
return nullableT.
Construct
(tuple);
Binder\Semantics\Conversions\Conversions.cs (1)
503
var spanType_T = spanType.
Construct
(sourceExpression.ElementType);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
883
return nullable.
Construct
(type);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2965
resultType = expressionOfTType.
Construct
(resultType);
CodeGen\EmitStackAllocInitializer.cs (1)
74
var readOnlySpan = spanGetItemDefinition.ContainingType.
Construct
(elementType);
Compiler\MethodBodySynthesizer.Lowered.cs (2)
151
.
Construct
(F.SpecialType(SpecialType.System_Char));
385
NamedTypeSymbol constructedEqualityComparer = equalityComparerType.
Construct
(valueToHash.Type);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (3)
265
returnType = returnType.ConstructedFrom.
Construct
(resultType);
288
builderType = builderType.ConstructedFrom.
Construct
(resultType);
297
builderType = builderType.
Construct
(resultType);
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (7)
130
F.WellKnownType(WellKnownType.System_Threading_Tasks_Sources_ManualResetValueTaskSourceCore_T).
Construct
(boolType),
299
.
Construct
(_currentField.Type);
479
.
Construct
(_currentField.Type);
497
.
Construct
(F.SpecialType(SpecialType.System_Boolean));
522
.
Construct
(F.SpecialType(SpecialType.System_Boolean));
548
.
Construct
(F.SpecialType(SpecialType.System_Boolean));
652
.
Construct
(_currentField.Type);
Lowering\AsyncRewriter\AsyncStateMachine.cs (2)
42
interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerable_T).
Construct
(elementType));
46
interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_IAsyncEnumerator_T).
Construct
(elementType));
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (5)
513
promotedType = _nullableType.
Construct
(promotedType);
608
var promotedType = e.IsNullableType() ? _nullableType.
Construct
(PromotedType(e.GetNullableUnderlyingType())) : PromotedType(e);
707
_nullableType.
Construct
(method.ReturnType) : method.ReturnType;
1063
var args = _bound.Convert(_IEnumerableType.
Construct
(ExpressionType), Expressions(node.Arguments));
1189
promotedType = _nullableType.
Construct
(promotedType);
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
258
var IEnumerableOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).
Construct
(_elementType.Type);
Lowering\IteratorRewriter\IteratorStateMachine.cs (2)
34
interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).
Construct
(ElementType.Type));
38
interfaces.Add(ContainingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).
Construct
(ElementType.Type));
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
953
.
Construct
(_factory.SpecialType(SpecialType.System_Char)),
955
.
Construct
(_factory.SpecialType(SpecialType.System_Char)),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
547
.
Construct
([elementType]);
819
asSpanMethod = spanCtorArray.AsMember(spanCtorArray.ContainingType.
Construct
(arrayType.ElementType));
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
903
userDefinedConversionRewrittenType = ((NamedTypeSymbol)rewrittenOperand.Type.OriginalDefinition).
Construct
(userDefinedConversionRewrittenType);
1118
rewrittenOperandType = rewrittenOperandType.IsNullableType() ? ((NamedTypeSymbol)rewrittenOperandType.OriginalDefinition).
Construct
(typeFromUnderlying) : typeFromUnderlying;
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
100
NamedTypeSymbol actionType = _factory.WellKnownType(WellKnownType.System_Action_T).
Construct
(tokenType);
141
NamedTypeSymbol func2Type = _factory.WellKnownType(WellKnownType.System_Func_T2).
Construct
(eventType, tokenType);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
508
var readOnlySpanOfChar = readOnlySpanCtorRefParamGeneric.ContainingType.
Construct
(charType);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
642
var callSiteType = callSiteTypeGeneric.
Construct
(new[] { delegateTypeOverMethodTypeParameters });
711
callSiteType = callSiteType.
Construct
(new[] { delegateTypeOverContainerTypeParameters });
750
return delegateType.
Construct
(delegateSignature);
788
return synthesizedType.
Construct
(delegateSignature);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
372
var type = DeclaringCompilation.GetWellKnownType(WellKnownType.System_IEquatable_T).
Construct
(this);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
748
var constructedEqualityComparer = equalityComparerType.
Construct
(fieldType);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
16
this.SetReturnType(spanType.
Construct
(TypeParameters[1]));
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
16
this.SetReturnType(spanType.
Construct
(TypeParameters[1]));
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
276
returnType = taskT.
Construct
(resultType);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
49
Construct
(Binder.GetSpecialType(compilation, SpecialType.System_Int32, NoLocation.Singleton, diagnostics));