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