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