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