8 overrides of Construct
Microsoft.CodeAnalysis.VisualBasic (8)
Symbols\ErrorTypeSymbol.vb (1)
324
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\InstanceTypeSymbol.vb (1)
52
Public NotOverridable Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
726
Public Overloads Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\SubstitutedNamedType.vb (3)
755
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
899
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
999
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\Tuples\TupleTypeSymbol.vb (1)
1067
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
Symbols\UnboundGenericType.vb (1)
309
Public Overrides Function
Construct
(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
30 references to Construct
Microsoft.CodeAnalysis.VisualBasic (16)
Binding\Binder_Conversions.vb (1)
383
Construct
(ImmutableArray.Create(Of TypeSymbol)(targetType))
Binding\Binder_Symbols.vb (2)
167
Dim constructedType = genericType.
Construct
(typeArguments)
1005
lookupResult.ReplaceSymbol(namedType.
Construct
(
Binding\Binder_Utils.vb (1)
298
Dim constructedType = nullableType.
Construct
(ImmutableArray.Create(typeArgument))
Binding\DocumentationCommentCrefBinder.vb (1)
858
symbols(i) = type.
Construct
(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
403
Return type.
Construct
(BingTypeArgumentsForCref(genericName.TypeArgumentList.Arguments))
Lowering\SyntheticBoundNodeFactory.vb (1)
241
Return nullableType.
Construct
(ImmutableArray.Create(type))
Semantics\Conversions.vb (1)
1481
nullableOfBoolean = nullableOfT.
Construct
(ImmutableArray.Create(Of TypeSymbol)(booleanType))
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
74
Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.
Construct
(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
77
Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.
Construct
(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\NamedTypeSymbol.vb (4)
463
Return
Construct
(typeArguments.AsImmutableOrNull())
470
Return
Construct
(typeArguments.AsImmutableOrNull())
1177
Return
Construct
(ConstructTypeArguments(typeArguments))
1181
Return
Construct
(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations))
Symbols\Tuples\TupleTypeSymbol.vb (2)
554
Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.
Construct
(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder))
564
namedTypeSymbol = wellKnownType2.
Construct
(typeArguments)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AttributeTests.vb (3)
2192
Dim classYOfW As NamedTypeSymbol = classY.
Construct
(ImmutableArray.Create(Of TypeSymbol)(classW))
2199
Dim classYOfInt As NamedTypeSymbol = classY.
Construct
(ImmutableArray.Create(Of TypeSymbol)(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32)))
2208
Dim substNestedZ As NamedTypeSymbol = classYOfInt.GetTypeMember("Z").
Construct
(ImmutableArray.Create(Of TypeSymbol)(classW))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetExtendedSemanticInfoTests.vb (2)
6709
Dim ienumerable = compilation.GetSpecialType(System_Collections_Generic_IEnumerable_T).
Construct
(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32)))
6710
Dim ienumerator = compilation.GetSpecialType(System_Collections_Generic_IEnumerator_T).
Construct
(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32)))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\CustomModifiersTests.vb (1)
286
Dim withoutModifiers = withModifiers.OriginalDefinition.
Construct
(withModifiers.TypeArguments)
SymbolsTests\InstantiatingGenerics.vb (2)
172
Assert.Same(type, type.
Construct
(type.TypeParameters.As(Of TypeSymbol)()))
175
Assert.Throws(Of InvalidOperationException)(Sub() type.
Construct
(testArgs.AsImmutableOrNull()))
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (2)
252
Dim type2 = DirectCast(DirectCast(genericBase.ContainingSymbol.ContainingSymbol.OriginalDefinition, NamedTypeSymbol).
Construct
(type1.TypeArguments), SubstitutedErrorType)
293
Assert.Same(missing, missing.
Construct
(missing.TypeParameters.As(Of TypeSymbol)()))
SymbolsTests\Retargeting\RetargetingTests.vb (2)
294
Dim i_a_v2 = compilation1_v2.GetTypeByMetadataName("I`1").
Construct
(ImmutableArray.Create(Of TypeSymbol)(a_v2))
315
Dim i_ct_v2 = compilation1_v2.GetTypeByMetadataName("I`1").
Construct
(ImmutableArray.Create(Of TypeSymbol)(c.TypeParameters(0)))
SymbolsTests\Source\ClsComplianceTests.vb (1)
2570
type = type.
Construct
(ArrayBuilder(Of TypeSymbol).GetInstance(type.Arity, integerType).ToImmutableAndFree())
SymbolsTests\Source\MethodTests.vb (1)
680
Dim constructedC = classC.
Construct
((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_Int32)}).AsImmutableOrNull())