42 references to Construct
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Conversions.cs (4)
538.Construct([((NamedTypeSymbol)source.Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0]]) 1534constructed = member.Construct(inferenceResult.InferredTypeArguments); 1903methodWithTargetTypeParameters = method.OriginalDefinition.Construct(allTypeParameters); 1904method = method.Construct(allTypeArguments);
Binder\Binder_Crefs.cs (1)
1100symbol = ((MethodSymbol)symbol).Construct(typeArgumentsWithAnnotations.ToImmutableAndFree());
Binder\Binder_Expressions.cs (2)
10953method = method.ConstructedFrom.Construct(node.TypeArgumentsOpt); 11032var substituted = typeArguments.IsDefaultOrEmpty ? memberMethod : memberMethod.Construct(typeArguments);
Binder\Binder_Invocation.cs (1)
1997? m.Construct(typeArgumentsWithAnnotations)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
625return method.Construct(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (1)
8752result = resultMethod.Construct(((MethodSymbol)symbol).TypeArgumentsWithAnnotations);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1050synthesizedMethod = synthesizedMethod.Construct(realTypeArguments);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
216return (result.Arity > 0) ? result.Construct(method.TypeArgumentsWithAnnotations) : result;
Lowering\LocalRewriter\LocalRewriter.cs (1)
849.Construct(ImmutableArray.Create(elementType)),
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
187interceptor = interceptor.Construct(typeArgumentsBuilder.ToImmutableAndFree());
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
173var toListOfElementType = toListGeneric.Construct([listElementType]); 242return _factory.StaticCall(asImmutableArray.Construct(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation)); 575Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 604inlineArrayAsSpan = inlineArrayAsSpan.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 678var linqToArrayMethod = linqToArrayMethodGeneric.Construct([arrayType.ElementTypeWithAnnotations]); 1041setCount = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.Construct(typeArguments); 1042asSpan = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__AsSpan_T))?.Construct(typeArguments);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
667MethodSymbol castUpMethod = castUpMethodDefinition.AsMember(destinationType).Construct([sourceElementType]); 688MethodSymbol method = methodDefinition.AsMember(destinationType).Construct([sourceElementType]);
Lowering\MethodToClassRewriter.cs (1)
151return newMethod.Construct(visitedTypeArgs.ToImmutableAndFree());
Symbols\MemberSymbolExtensions.cs (2)
219return (TMember)(Symbol)method.Construct(typeArguments[extension.Arity..]); 225return (TMember)(Symbol)method.Construct(typeArguments);
Symbols\MethodSymbol.cs (2)
478return m.IsGenericMethod ? m.Construct(this.TypeArgumentsWithAnnotations) : m; 858return Construct(typeArguments.SelectAsArray(a => TypeWithAnnotations.Create(a)));
Symbols\MethodSymbolExtensions.cs (1)
87return method.IsGenericMethod ? method.Construct(typeArguments) : method;
Symbols\PublicModel\MethodSymbol.cs (2)
277return _underlying.Construct(ConstructTypeArguments(typeArguments)).GetPublicSymbol(); 282return _underlying.Construct(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations)).GetPublicSymbol();
Symbols\ReducedExtensionMethodSymbol.cs (2)
88return reducedMethod.Construct(method.TypeArgumentsWithAnnotations); 238return method.Construct(typeArgsForConstruct);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
988overriddenMethod = overriddenMethod.Construct(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(overridingMethod.TypeParameters));
Symbols\SubstitutedMethodSymbol.cs (1)
155return ((object)method == null) ? null : method.Construct(this.TypeArgumentsWithAnnotations);
Symbols\TypeSymbol.cs (1)
1964implementedMethod = implementedMethod.Construct(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementingMethod.TypeParameters));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NullableReferenceTypesTests.cs (6)
113155m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Annotated))), 113156m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.NotAnnotated))), 113157m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Oblivious))) 113162m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Annotated))), 113163m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.NotAnnotated))), 113164m1.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Oblivious)))