26 references to Construct
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Conversions.cs (1)
1886methodWithTargetTypeParameters = method.OriginalDefinition.Construct(allTypeParameters);
Binder\Binder_Expressions.cs (2)
10587method = method.ConstructedFrom.Construct(node.TypeArgumentsOpt); 10651var 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)
4210member = (TMember)(Symbol)method.Construct(typeArguments); 4211leastOverriddenMember = (TMember)(Symbol)leastOverriddenMethod.ConstructedFrom.Construct(typeArguments);
Compilation\CSharpSemanticModel.cs (1)
4666constructedMethod = method.Construct(typeArguments);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
618return method.Construct(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (2)
7871return definition.Construct(result.InferredTypeArguments); 8257result = 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)
240return _factory.StaticCall(asImmutableArray.Construct(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation)); 561Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 590inlineArrayAsSpan = inlineArrayAsSpan.Construct(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType)); 997setCount = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.Construct(typeArguments); 998asSpan = ((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)
154return ((object)method == null) ? null : method.Construct(this.TypeArgumentsWithAnnotations);
Symbols\TypeSymbol.cs (1)
1946implementedMethod = implementedMethod.Construct(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementingMethod.TypeParameters));