21 references to Construct
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.ValueChecks.cs (1)
893getItemOrSliceHelper = getItemOrSliceHelper.AsMember(getItemOrSliceHelper.ContainingType.Construct(ImmutableArray.Create(elementAccess.Expression.Type.TryGetInlineArrayElementField().TypeWithAnnotations)));
Binder\Binder_Expressions.cs (2)
9196Construct(ImmutableArray.Create(elementField.TypeWithAnnotations)); 10855return delegateType.Construct(typeArguments);
Binder\Binder_Symbols.cs (2)
1238resultType = unconstructedType.Construct(PlaceholderTypeArgumentSymbol.CreateTypeArguments(unconstructedType.TypeParameters)); 1559type = type.Construct(typeArguments);
Binder\ForEachLoopBinder.cs (1)
843spanType = spanType.Construct(ImmutableArray.Create(elementField.TypeWithAnnotations));
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1150HasIdentityConversionInternal(((NamedTypeSymbol)destination.OriginalDefinition).Construct(ImmutableArray.Create(elementType)), destination))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
643return type.Construct(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (4)
4673return namedType.OriginalDefinition.Construct(ImmutableArray.Create(elementType)); 4828type = TypeWithAnnotations.Create(((NamedTypeSymbol)node.Type).OriginalDefinition.Construct(ImmutableArray.Create(type))); 6366var constructedType = wellKnownType.Construct(ImmutableArray.Create(parameterType)); 11001getEnumeratorType = spanType.Construct(ImmutableArray.Create(convertedResult.Type!.TryGetInlineArrayElementField()!.TypeWithAnnotations));
Lowering\IteratorRewriter\IteratorRewriter.cs (1)
218var IEnumeratorOfElementType = F.SpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(_elementType));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
424var synthesizedType = _factory.ModuleBuilderOpt.EnsureReadOnlyListTypeExists(syntax, kind: kind, _diagnostics.DiagnosticBag).Construct(typeArgs); 556var inlineArrayType = _factory.ModuleBuilderOpt.EnsureInlineArrayTypeExists(syntax, _factory, arrayLength, _diagnostics.DiagnosticBag).Construct(ImmutableArray.Create(elementType)); 981var collectionType = _factory.WellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(typeArguments);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
473type = TypeWithAnnotations.Create(tokenTableType.Construct(ImmutableArray.Create(@event.TypeWithAnnotations)));
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1879Conversions.HasIdentityConversion(((NamedTypeSymbol)returnTypeOriginalDefinition).Construct(ImmutableArray.Create(elementType)), returnType))
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
279SynthesizedReadOnlyListKind.List => compilation.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(typeArgs),
Symbols\Tuples\TupleTypeSymbol.cs (2)
240NamedTypeSymbol currentSymbol = firstTupleType.Construct(ImmutableArray.Create(elementTypes, (chainLength - 1) * (ValueTupleRestPosition - 1), remainder)); 245currentSymbol = chainedTupleTypeOpt!.Construct(chainedTypes);