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