121 references to Construct
Microsoft.CodeAnalysis.VisualBasic (31)
Binding\Binder_Conversions.vb (1)
740Dim suggestion As NamedTypeSymbol = iEnumerable_T.Construct(targetNamedType.TypeArgumentsNoUseSiteDiagnostics(0))
Binding\Binder_Expressions.vb (1)
951resultType = GetSpecialType(SpecialType.System_Nullable_T, expr.Syntax, diagnostics).Construct(resultType)
Binding\Binder_Lambda.vb (3)
926Construct(GetSpecialType(SpecialType.System_Object, source.Syntax, diagnostics)) 993lambdaReturnType = GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T, source.Syntax, diagnostics).Construct(lambdaReturnType) 997lambdaReturnType = GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T, source.Syntax, diagnostics).Construct(lambdaReturnType)
Binding\Binder_Operators.vb (7)
835resultType = DirectCast(rightType.OriginalDefinition, NamedTypeSymbol).Construct(leftType) 849resultType = DirectCast(leftType.OriginalDefinition, NamedTypeSymbol).Construct(rightNullableUnderlying) 856resultType = DirectCast(leftType.OriginalDefinition, NamedTypeSymbol).Construct(resultType) 859resultType = DirectCast(rightType.OriginalDefinition, NamedTypeSymbol).Construct(resultType) 891Return DirectCast(leftType.OriginalDefinition, NamedTypeSymbol).Construct(ofType) 893Return DirectCast(rightType.OriginalDefinition, NamedTypeSymbol).Construct(ofType) 1169resultType = DirectCast(operandType.OriginalDefinition, NamedTypeSymbol).Construct(resultType)
Binding\Binder_XmlLiterals.vb (1)
354Dim listType = GetWellKnownType(WellKnownType.System_Collections_Generic_List_T, syntax, diagnostics).Construct(
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
62Me._builderType = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_AsyncTaskMethodBuilder_T).Construct(Me._resultType)
Lowering\IteratorRewriter\IteratorRewriter.vb (2)
181Dim getEnumeratorGeneric = Me.OpenMethodImplementation(F.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_elementType), 275Me.OpenPropertyImplementation(F.SpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(_elementType),
Lowering\IteratorRewriter\IteratorStateMachine.vb (2)
51interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(elementType)) 55interfaces.Add(containingAssembly.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(elementType))
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (2)
103actionType = actionType.Construct(tokenType) 121func2Type = func2Type.Construct(eventType, tokenType)
Semantics\Operators.vb (3)
3224returnType = nullableOfT.Construct(returnType) 3265Return New LiftedParameterSymbol(param, nullableOfT.Construct(param.Type)) 3270New LiftedParameterSymbol(definition, nullableOfT.Construct(definition.Type)))
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
148Return template.Construct(typeArguments)
Symbols\ArrayTypeSymbol.vb (5)
85Return ImmutableArray.Create(iReadOnlyListOfT.Construct(elementType)) 88Return ImmutableArray.Create(iListOfT.Construct(elementType)) 90Return ImmutableArray.Create(iListOfT.Construct(elementType), iReadOnlyListOfT.Construct(elementType)) 574newInterfaces = newInterfaces.SelectAsArray(Function(i) i.OriginalDefinition.Construct(newElementType))
Symbols\Source\SynthesizedEventBackingFieldSymbol.vb (1)
45result = tokenType.Construct(result)
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
171returnType = taskT.Construct(resultType)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (25)
Attributes\AttributeTests.vb (1)
1786Dim dOfButton = d.Construct(button)
CodeGen\CodeGenTuples.vb (23)
6868Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType) 6890Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 6919Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 6942Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 6962Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 6983Dim vt3 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T3).Construct(intType, stringType, intType) 7002Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType) 7023Construct(intType, stringType, intType, stringType, intType, stringType, intType, 7024comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(stringType)) 7048Construct(intType, stringType, intType, stringType, intType, stringType, intType, 7049comp.GetWellKnownType(WellKnownType.System_ValueTuple_T1).Construct(stringType)) 7073Construct(intType, stringType, intType, stringType, intType, stringType, intType, 7074comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, intType)) 7098Construct(intType, stringType, intType, stringType, intType, stringType, intType, 7099comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, intType)) 7123Construct(intType, stringType, intType, stringType, intType, stringType, intType, 7124comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, intType)) 7151Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, ErrorTypeSymbol.UnknownResultType) 7170Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType) 7171Dim vt3 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T3).Construct(intType, intType, intType) 7192Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, intType) 7506Dim twoStrings = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(stringType, stringType) 7508Dim tuple2Underlying = comp.GetWellKnownType(WellKnownType.System_ValueTuple_TRest).Construct(intType, intType, intType, intType, intType, intType, intType, twoStringsWithNames)
PDB\PDBTests.vb (1)
194Dim d_int = d.Construct(stInt)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (33)
Compilation\CompilationAPITests.vb (5)
1480Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 1496Dim vt2 = comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).Construct(intType, stringType) 1818Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType) 1861Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType) 2103Dim taskOfObject = taskOfT.Construct(compilation.ObjectType)
Semantics\Conversions.vb (20)
456Dim nullableType2 = nullableType.Construct(type2) 548Dim nullableType2 = nullableType.Construct(type2) 749Dim nullableType2 = nullableType.Construct(numericType) 1314Dim nullableType2 = nullableType.Construct(numericType) 1482Dim enumerableOfModifiedArrayInt32 = enumerable.Construct(modifiedArrayInt32) 1483Dim enumerableOfArrayInt32 = enumerable.Construct(arrayInt32) 2043nullable.Construct(c1.GetSpecialType(System_Byte)), 2044nullable.Construct(c1.GetSpecialType(System_SByte)), 2045nullable.Construct(c1.GetSpecialType(System_UInt16)), 2046nullable.Construct(c1.GetSpecialType(System_Int16)), 2047nullable.Construct(c1.GetSpecialType(System_UInt32)), 2048nullable.Construct(c1.GetSpecialType(System_Int32)), 2049nullable.Construct(c1.GetSpecialType(System_UInt64)), 2050nullable.Construct(c1.GetSpecialType(System_Int64)), 2051nullable.Construct(c1.GetSpecialType(System_Decimal)), 2052nullable.Construct(c1.GetSpecialType(System_Single)), 2053nullable.Construct(c1.GetSpecialType(System_Double)), 2054nullable.Construct(c1.GetSpecialType(System_Char)), 2055nullable.Construct(c1.GetSpecialType(System_Boolean)), 2056nullable.Construct(c1.GetSpecialType(System_DateTime))
Semantics\GetSemanticInfoTests.vb (7)
5722Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5737Dim otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)) 5829Dim typeFuncB = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(typeB) 5881Dim typeFuncC = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(typeC) 5946Dim typeFuncA = typeFunc.Construct(typeInt, typeA) 5947Dim typeFuncB = typeFunc.Construct(typeInt, typeB) 5948Dim typeFuncC = typeFunc.Construct(typeInt, typeC)
Semantics\OverloadResolution.vb (1)
183Dim TestClass2OfInteger = TestClass2.Construct(c1.GetSpecialType(System_Int32))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (32)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (1)
545Assert.Equal(GetNamedTypeSymbol(m, "System.IEquatable").Construct(type), [interface])
SymbolsTests\InstantiatingGenerics.vb (19)
167Dim constructed = type.Construct(testArgs) 174Assert.Throws(Of InvalidOperationException)(Sub() type.Construct(testArgs)) 255Dim g1 = C1.Construct({TC2_T1}) 266Dim g2 = g1_C2.Construct({TC2_T2}) 278Dim g4 = g1_C3_C4.Construct({TC2_T2}) 282Dim g108 = C108.Construct({TC2_T1}) 286Dim g_TC2 = TC2.Construct({C107, C108}) 290Assert.Equal(TC2, TC2.Construct({TC2_T1, TC2_T2})) 469Assert.Throws(Of InvalidOperationException)(Function() int.Construct()) 477Dim c3OfIntInt = c3.Construct(int, int) 571Dim c1OfIntInt_c2Of_c3OfInt = c1OfIntInt_c2Of_c3.Construct(int, c3.TypeParameters(1)) 588Assert.Throws(Of InvalidOperationException)(Sub() c1OfIntInt_c2_c3.Construct(c3.TypeParameters(0), c3.TypeParameters(1))) 590Dim c1OfIntInt_c2Of_c3Constructed = c1OfIntInt_c2Of_c3.Construct(c3.TypeParameters(0), c3.TypeParameters(1)) 601Assert.Same(c3, c3.Construct(c3.TypeParameters(0), c3.TypeParameters(1))) 619Assert.Throws(Of InvalidOperationException)(Sub() c5.Construct(c1)) 639Assert.Same(c1OfIntInt_c2, c1OfIntInt_c2.Construct(c1OfIntInt_c2_1.TypeParameters(0), c1OfIntInt_c2_1.TypeParameters(1))) 640Dim alphaConstructedC2 = c1OfIntInt_c2.Construct(c1OfIntInt_c2_1.TypeParameters(1), c1OfIntInt_c2_1.TypeParameters(0)) 648alphaConstructedC2 = c1OfIntInt_c2.Construct(c1OfIntInt_c2_1.TypeParameters(0), c1OfIntInt) 655alphaConstructedC2 = c1OfIntInt_c2.Construct(c1OfIntInt, c1OfIntInt_c2_1.TypeParameters(1))
SymbolsTests\Metadata\WinMdEventTest.vb (1)
1621Dim expectedFieldType = compilation.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationTokenTable_T).Construct(eventType)
SymbolsTests\Source\BaseClassTests.vb (3)
2290Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2325Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2355Dim typeC = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").Construct(comp.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\FieldTests.vb (1)
535Dim substitutedType = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32))
SymbolsTests\Source\ImplementsTests.vb (4)
2532Dim listOfString = listOfT.Construct(comp.GetSpecialType(SpecialType.System_String)) 2535Dim outerOfInt = outerOfX.Construct(comp.GetSpecialType(SpecialType.System_Int32)) 2544Dim iFooOfIntIntListOfString = iFooOfIntTU.Construct(comp.GetSpecialType(SpecialType.System_Int32), listOfString) 2546Dim fooOfIntString = fooOfIntY.Construct(comp.GetSpecialType(SpecialType.System_String))
SymbolsTests\Source\OverridesTests.vb (2)
6962Dim validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType) 7201Dim validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType)
SymbolsTests\Source\TypeTests.vb (1)
3825Dim i2a = i2.Construct(iDefinition.TypeParameters.Single())