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