1 override of Construct
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\SubstitutedMethodSymbol.vb (1)
401Public MustOverride Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
37 references to Construct
Microsoft.CodeAnalysis.VisualBasic (22)
Binding\DocumentationCommentCrefBinder.vb (1)
853symbols(i) = method.Construct(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
398Return method.Construct(BingTypeArgumentsForCref(genericName.TypeArgumentList.Arguments))
BoundTree\BoundExpressionExtensions.vb (2)
571symbols.Add(method.Construct(methodGroup.TypeArgumentsOpt.Arguments)) 582symbols.Add(method.Construct(methodGroup.TypeArgumentsOpt.Arguments))
Compilation\MethodCompiler.vb (1)
811methodToInvoke = method.Construct(matchingStub.TypeArguments)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
578Return method.Construct(ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(IndexedTypeParameterSymbol.Take(i)))
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1140referencedMethod = referencedMethod.Construct(StaticCast(Of TypeSymbol).From(_currentTypeParameters))
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
141method = method.Construct(ImmutableArray.Create(Of TypeSymbol)(typeParameter))
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (2)
50newMethod = newMethod.Construct(visitedTypeArgs.AsImmutableOrNull()) 189Dim newConstructedWrappedMethod As MethodSymbol = methodToWrap.Construct(typeArgs.AsImmutableOrNull())
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
62Dim newConstructedWrappedMethod As MethodSymbol = topLevelMethod.Construct(typeArgs.AsImmutableOrNull())
Semantics\OverloadResolution.vb (2)
158Return New MethodCandidate(m_Method.Construct(typeArguments)) 285Return New ExtensionMethodCandidate(m_Method.Construct(typeArguments), _fixedTypeParameters)
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (1)
194candidateMethod = candidateMethod.Construct(StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(candidateMethod.Arity)))
Symbols\MethodSymbol.vb (3)
591Return Construct(ImmutableArray.Create(typeArguments)) 1114Return Construct(ConstructTypeArguments(typeArguments)) 1122Return Construct(ConstructTypeArguments(typeArguments, typeArgumentNullableAnnotations))
Symbols\MethodSymbolExtensions.vb (1)
99Return If(method.IsGenericMethod(), method.Construct(typeArguments), method)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
372compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create(Of TypeSymbol)(delegateType))
Symbols\SubstitutedMethodSymbol.vb (2)
871Return reducedDef.Construct(Me.TypeArguments) 887Return reducedDef.Construct(resultTypeArguments.AsImmutableOrNull())
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
44implementedMethod = implementedMethod.Construct(StaticCast(Of TypeSymbol).From(_typeParameters))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
CompilationContext.vb (1)
1375candidateMethod.Construct(candidateSubstitutedSourceType.TypeArgumentsNoUseSiteDiagnostics))
Symbols\EEMethodSymbol.vb (1)
98Me.SubstitutedSourceMethod = Me.SubstitutedSourceMethod.Construct(_typeParameters.As(Of TypeSymbol)())
VisualBasicInstructionDecoder.vb (1)
78method = method.Construct(ImmutableArray.Create(typeArguments, methodArgumentStartIndex, methodArity))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\OverloadResolution.vb (2)
293Assert.Equal(TestClass1_M2.Construct((New TypeSymbol() {TestClass1}).AsImmutableOrNull()), result.Candidates(0).Candidate.UnderlyingSymbol) 710Assert.Equal(TestClass1_M2.Construct((New TypeSymbol() {TestClass1}).AsImmutableOrNull()), result.Candidates(0).Candidate.UnderlyingSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\InstantiatingGenerics.vb (2)
195Assert.Throws(Of InvalidOperationException)(Sub() method.Construct(method.TypeParameters.As(Of TypeSymbol)())) 198Assert.Throws(Of InvalidOperationException)(Sub() method.Construct(testArgs.AsImmutableOrNull()))
SymbolsTests\Source\MethodTests.vb (8)
755Dim constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 766Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 770Dim constructedM1WrongArity = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String)}).AsImmutableOrNull()) 774Dim identityM1 = m1.Construct(m1.OriginalDefinition.TypeParameters.As(Of TypeSymbol)()) 779identityM1 = m1.Construct(m1.TypeParameters.As(Of TypeSymbol)()) 782constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 784Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 786Dim constructedM1_3 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())