26 references to Construct
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Conversions.cs (1)
1886methodWithTargetTypeParameters = method.OriginalDefinition.Construct(allTypeParameters);
Binder\Binder_Expressions.cs (2)
10588method = method.ConstructedFrom.Construct(node.TypeArgumentsOpt); 10652var substituted = typeArguments.IsDefaultOrEmpty ? memberMethod : memberMethod.Construct(typeArguments);
Binder\Binder_Invocation.cs (1)
1930constructedMethods.Add(m.ConstructedFrom == m && m.Arity == typeArgumentsWithAnnotations.Length ? m.Construct(typeArgumentsWithAnnotations) : m);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
4231member = (TMember)(Symbol)method.Construct(typeArguments); 4232leastOverriddenMember = (TMember)(Symbol)leastOverriddenMethod.ConstructedFrom.Construct(typeArguments);
Compilation\CSharpSemanticModel.cs (1)
4673constructedMethod = method.Construct(typeArguments);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
618return method.Construct(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (2)
7929return definition.Construct(result.InferredTypeArguments); 8315result = resultMethod.Construct(((MethodSymbol)symbol).TypeArgumentsWithAnnotations);
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_CollectionExpression.cs (5)
243return _factory.StaticCall(asImmutableArray.Construct(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation)); 576Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 605inlineArrayAsSpan = inlineArrayAsSpan.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 1042setCount = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.Construct(typeArguments); 1043asSpan = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__AsSpan_T))?.Construct(typeArguments);
Symbols\MethodSymbol.cs (1)
476return m.IsGenericMethod ? m.Construct(this.TypeArgumentsWithAnnotations) : m;
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)
983overriddenMethod = overriddenMethod.Construct(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(overridingMethod.TypeParameters));
Symbols\SubstitutedMethodSymbol.cs (1)
155return ((object)method == null) ? null : method.Construct(this.TypeArgumentsWithAnnotations);
Symbols\TypeSymbol.cs (1)
1946implementedMethod = implementedMethod.Construct(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementingMethod.TypeParameters));