29 references to Construct
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Crefs.cs (1)
917
symbol = ((MethodSymbol)symbol).
Construct
(typeArgumentsWithAnnotations.ToImmutableAndFree());
Binder\Binder_Expressions.cs (1)
9161
method = method.ConstructedFrom.
Construct
(node.TypeArgumentsOpt);
Binder\Binder_Invocation.cs (1)
1608
constructedMethods.Add(m.ConstructedFrom == m && m.Arity == typeArgumentsWithAnnotations.Length ? m.
Construct
(typeArgumentsWithAnnotations) : m);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3475
member = (TMember)(Symbol)method.
Construct
(typeArguments);
3476
leastOverriddenMember = (TMember)(Symbol)leastOverriddenMethod.ConstructedFrom.
Construct
(typeArguments);
Compilation\CSharpSemanticModel.cs (1)
4651
constructedMethod = method.
Construct
(typeArguments);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
824
return method.
Construct
(IndexedTypeParameterSymbol.Take(n));
FlowAnalysis\NullableWalker.cs (2)
7067
return definition.
Construct
(result.InferredTypeArguments);
7414
result = resultMethod.
Construct
(((MethodSymbol)symbol).TypeArgumentsWithAnnotations);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1030
synthesizedMethod = synthesizedMethod.
Construct
(realTypeArguments);
Lowering\LocalRewriter\LocalRewriter.cs (1)
726
.
Construct
(ImmutableArray.Create(elementType)),
Lowering\MethodToClassRewriter.cs (1)
337
return newMethod.
Construct
(visitedTypeArgs.ToImmutableAndFree());
Symbols\MethodSymbol.cs (2)
472
return m.IsGenericMethod ? m.
Construct
(this.TypeArgumentsWithAnnotations) : m;
844
return
Construct
(typeArguments.SelectAsArray(a => TypeWithAnnotations.Create(a)));
Symbols\MethodSymbolExtensions.cs (1)
87
return method.IsGenericMethod ? method.
Construct
(typeArguments) : method;
Symbols\PublicModel\MethodSymbol.cs (2)
276
return _underlying.
Construct
(ConstructTypeArguments(typeArguments)).GetPublicSymbol();
281
return _underlying.
Construct
(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations)).GetPublicSymbol();
Symbols\ReducedExtensionMethodSymbol.cs (2)
88
return reducedMethod.
Construct
(method.TypeArgumentsWithAnnotations);
230
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)
1917
implementedMethod = implementedMethod.
Construct
(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementingMethod.TypeParameters));
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.cs (1)
1843
: sourceMethod.
Construct
(candidateSubstitutedSourceType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NullableReferenceTypesTests.cs (6)
109385
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Annotated))),
109386
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.NotAnnotated))),
109387
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Oblivious)))
109392
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Annotated))),
109393
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.NotAnnotated))),
109394
m1.
Construct
(ImmutableArray.Create(TypeWithAnnotations.Create(a, NullableAnnotation.Oblivious)))