24 references to ConstructIfGeneric
Microsoft.CodeAnalysis.CSharp (5)
Lowering\MethodToClassRewriter.cs (1)
645
.
ConstructIfGeneric
(TypeMap.SubstituteTypes(method.TypeArgumentsWithAnnotations));
Symbols\ReducedExtensionMethodSymbol.cs (1)
235
get { return _reducedFrom.
ConstructIfGeneric
(_typeArguments); }
Symbols\Source\CustomModifierUtils.cs (1)
40
MethodSymbol constructedSourceMethod = sourceMethod.
ConstructIfGeneric
(destinationMethod.TypeArgumentsWithAnnotations);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
655
MethodSymbol constructedDefinition = definition.
ConstructIfGeneric
(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementation.TypeParameters));
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
48
_interfaceMethod = interfaceMethod.
ConstructIfGeneric
(TypeArgumentsWithAnnotations);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EECompilationContextMethod.cs (1)
40
_underlyingMethod = underlyingMethod.
ConstructIfGeneric
(TypeArgumentsWithAnnotations);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\NullableReferenceTypesTests.cs (16)
13196
Assert.False(member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.
ConstructIfGeneric
(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).ReturnTypeWithAnnotations,
13314
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
13322
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
13401
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
13676
Assert.False(m1.Parameters[0].TypeWithAnnotations.Equals(m1.OverriddenMethod.
ConstructIfGeneric
(m1.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).Parameters[0].TypeWithAnnotations,
14016
Assert.False(member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.
ConstructIfGeneric
(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).ReturnTypeWithAnnotations,
14021
Assert.True(m3.ReturnTypeWithAnnotations.Equals(m3.OverriddenMethod.
ConstructIfGeneric
(m3.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).ReturnTypeWithAnnotations,
14123
Assert.False(member.Parameters[0].TypeWithAnnotations.Equals(member.OverriddenMethod.
ConstructIfGeneric
(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).Parameters[0].TypeWithAnnotations,
14128
Assert.True(m3.Parameters[0].TypeWithAnnotations.Equals(m3.OverriddenMethod.
ConstructIfGeneric
(m3.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).Parameters[0].TypeWithAnnotations,
16473
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
16481
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
17694
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
17702
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
17762
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
17770
var implemented = member.
ConstructIfGeneric
(implementing.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
17838
var m1Def = m1.
ConstructIfGeneric
(m1Impl.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\ExtensionMethodTests.cs (2)
2576
var extensionMethod = ReducedExtensionMethodSymbol.Create(method.
ConstructIfGeneric
(typeArgs));
2580
extensionMethod = ReducedExtensionMethodSymbol.Create(method).
ConstructIfGeneric
(typeArgs);