26 references to Construct
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Conversions.cs (1)
1886
methodWithTargetTypeParameters = method.OriginalDefinition.
Construct
(allTypeParameters);
Binder\Binder_Expressions.cs (2)
10587
method = method.ConstructedFrom.
Construct
(node.TypeArgumentsOpt);
10651
var substituted = typeArguments.IsDefaultOrEmpty ? memberMethod : memberMethod.
Construct
(typeArguments);
Binder\Binder_Invocation.cs (1)
1930
constructedMethods.Add(m.ConstructedFrom == m && m.Arity == typeArgumentsWithAnnotations.Length ? m.
Construct
(typeArgumentsWithAnnotations) : m);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
4210
member = (TMember)(Symbol)method.
Construct
(typeArguments);
4211
leastOverriddenMember = (TMember)(Symbol)leastOverriddenMethod.ConstructedFrom.
Construct
(typeArguments);
Compilation\CSharpSemanticModel.cs (1)
4666
constructedMethod = method.
Construct
(typeArguments);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
618
return method.
Construct
(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (2)
7871
return definition.
Construct
(result.InferredTypeArguments);
8257
result = resultMethod.
Construct
(((MethodSymbol)symbol).TypeArgumentsWithAnnotations);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
216
return (result.Arity > 0) ? result.
Construct
(method.TypeArgumentsWithAnnotations) : result;
Lowering\LocalRewriter\LocalRewriter.cs (1)
849
.
Construct
(ImmutableArray.Create(elementType)),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (5)
240
return _factory.StaticCall(asImmutableArray.
Construct
(ImmutableArray.Create(elementType)), ImmutableArray.Create(arrayCreation));
561
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType));
590
inlineArrayAsSpan = inlineArrayAsSpan.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(inlineArrayType), elementType));
997
setCount = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__SetCount_T))?.
Construct
(typeArguments);
998
asSpan = ((MethodSymbol?)_compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_InteropServices_CollectionsMarshal__AsSpan_T))?.
Construct
(typeArguments);
Symbols\MethodSymbol.cs (1)
476
return m.IsGenericMethod ? m.
Construct
(this.TypeArgumentsWithAnnotations) : m;
Symbols\MethodSymbolExtensions.cs (1)
87
return method.IsGenericMethod ? method.
Construct
(typeArguments) : method;
Symbols\PublicModel\MethodSymbol.cs (2)
277
return _underlying.
Construct
(ConstructTypeArguments(typeArguments)).GetPublicSymbol();
282
return _underlying.
Construct
(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations)).GetPublicSymbol();
Symbols\ReducedExtensionMethodSymbol.cs (2)
88
return reducedMethod.
Construct
(method.TypeArgumentsWithAnnotations);
238
return method.
Construct
(typeArgsForConstruct);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
983
overriddenMethod = overriddenMethod.
Construct
(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(overridingMethod.TypeParameters));
Symbols\SubstitutedMethodSymbol.cs (1)
154
return ((object)method == null) ? null : method.
Construct
(this.TypeArgumentsWithAnnotations);
Symbols\TypeSymbol.cs (1)
1946
implementedMethod = implementedMethod.
Construct
(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementingMethod.TypeParameters));