13 types derived from MethodSymbol
Microsoft.CodeAnalysis.VisualBasic (13)
Symbols\ErrorMethodSymbol.vb (1)
10Inherits MethodSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
27Inherits MethodSymbol
Symbols\ReducedExtensionMethodSymbol.vb (1)
20Inherits MethodSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
25Inherits MethodSymbol
Symbols\SignatureOnlyMethodSymbol.vb (1)
20Inherits MethodSymbol
Symbols\Source\LambdaSymbol.vb (1)
15Inherits MethodSymbol
Symbols\Source\SourceMethodSymbol.vb (1)
23Inherits MethodSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1048Inherits MethodSymbol
Symbols\SubstitutedMethodSymbol.vb (1)
20Inherits MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
19Inherits MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
18Inherits MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (1)
15Inherits MethodSymbol
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
20Inherits MethodSymbol
611 references to MethodSymbol
Microsoft.CodeAnalysis.VisualBasic (611)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (1)
93Dim getHashCodeMethod As MethodSymbol = Me.AnonymousType.Manager.System_Object__GetHashCode
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
12Friend Function GetBoundMethodBody(accessor As MethodSymbol, 146Dim methodMember = DirectCast(member, MethodSymbol)
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (2)
88DirectCast(Me.ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_String__Chars), MethodSymbol), 121F.Call(F.Parameter(text).MakeRValue(), DirectCast(Me.ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_String__Length), MethodSymbol))),
Emit\MethodSymbolAdapter.vb (4)
228Dim methodSymbol As MethodSymbol = AdaptedMethodSymbol.ConstructedFrom 321If(DirectCast(context.Module, PEModuleBuilder).JITOptimizationIsDisabled(AdaptedMethodSymbol), MethodSymbol.DisableJITOptimizationFlags, Nothing) 583Friend ReadOnly Property AdaptedMethodSymbol As MethodSymbol 585Friend Sub New(underlyingMethodSymbol As MethodSymbol)
Emit\NamedTypeSymbolAdapter.vb (8)
283AddExplicitImplementations(context, DirectCast(member, MethodSymbol), explicitImplements, sourceNamedType, moduleBeingBuilt) 290Dim method = TryCast(synthetic.GetInternalSymbol(), MethodSymbol) 301implementingMethod As MethodSymbol, 325Dim comMethod As MethodSymbol = sourceNamedType.GetCorrespondingComClassInterfaceMethod(implementingMethod) 477Dim methodSym = DirectCast(member, MethodSymbol) 978Friend Overridable Iterator Function GetMethodsToEmit() As IEnumerable(Of MethodSymbol) 981Dim method As MethodSymbol = DirectCast(member, MethodSymbol)
Emit\SynthesizedNamespaceSymbol.vb (1)
68Friend Overrides Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol))
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (2)
92Dim guidConstructor As MethodSymbol = factory.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Guid__ctor)
Emit\SynthesizedStaticLocalBackingFieldAdapter.vb (1)
45Dim declaringMethod = DirectCast(Me.ImplicitlyDefinedBy.ContainingSymbol, MethodSymbol)
Emit\TypeParameterSymbolAdapter.vb (2)
189Return DirectCast(AdaptedTypeParameterSymbol.ContainingSymbol, MethodSymbol).GetCciAdapter() 269Return DirectCast(AdaptedTypeParameterSymbol.ContainingSymbol, MethodSymbol).GetCciAdapter()
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (14)
169Public ReadOnly Property System_String__Format_IFormatProvider As MethodSymbol 171Return DirectCast(Compilation.GetSpecialTypeMember(SpecialMember.System_String__Format_IFormatProvider), MethodSymbol) 175Public ReadOnly Property System_Object__ToString As MethodSymbol 177Return DirectCast(Me.ContainingModule.ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Object__ToString), MethodSymbol) 181Public ReadOnly Property System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor As MethodSymbol 183Return DirectCast(Compilation.GetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor), MethodSymbol) 187Public ReadOnly Property System_Diagnostics_DebuggerDisplayAttribute__ctor As MethodSymbol 189Return DirectCast(Compilation.GetWellKnownTypeMember(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor), MethodSymbol) 199Public ReadOnly Property System_Object__GetHashCode As MethodSymbol 201Return DirectCast(Me.ContainingModule.ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Object__GetHashCode), MethodSymbol) 205Public ReadOnly Property System_Object__Equals As MethodSymbol 207Return DirectCast(Me.ContainingModule.ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Object__Equals), MethodSymbol) 217Public ReadOnly Property System_IEquatable_T_Equals As MethodSymbol 219Return DirectCast(Compilation.GetWellKnownTypeMember(WellKnownMember.System_IEquatable_T__Equals), MethodSymbol)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
277Friend Shared Function TranslateAnonymousTypeMethodSymbol(method As MethodSymbol) As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
162Public Overrides ReadOnly Property DelegateInvokeMethod As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (4)
19Private ReadOnly _getMethod As MethodSymbol 20Private ReadOnly _setMethod As MethodSymbol 41Public Overrides ReadOnly Property SetMethod As MethodSymbol 47Public Overrides ReadOnly Property GetMethod As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (7)
79methodMembersBuilder.Add(CreateIEquatableEqualsMethod(DirectCast(method, MethodSymbol))) 93Private Function CreateConstructorSymbol() As MethodSymbol 107Private Function CreateEqualsMethod() As MethodSymbol 119Private Function CreateIEquatableEqualsMethod(iEquatableEquals As MethodSymbol) As MethodSymbol 131Private Function CreateGetHashCodeMethod() As MethodSymbol 139Private Function CreateToStringMethod() As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (9)
274Public Function MapMethodToImplementationSymbol(method As MethodSymbol) As MethodSymbol 282Public Function FindSubstitutedMethodSymbol(method As MethodSymbol) As MethodSymbol 287Private Shared Function FindMethodInTypeProvided(method As MethodSymbol, type As NamedTypeSymbol) As MethodSymbol 304Dim mappedMethod As MethodSymbol = DirectCast(type.GetMembers()(index), MethodSymbol) 312Return DirectCast(DirectCast(type, SubstitutedNamedType).GetMemberForDefinition(methodInDefinition), MethodSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
153Public Overrides ReadOnly Property DelegateInvokeMethod As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (3)
17Private ReadOnly _iEquatableEqualsMethod As MethodSymbol 19Public Sub New(container As AnonymousTypeTemplateSymbol, iEquatableEqualsMethod As MethodSymbol) 62Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_GetHashCodeMethodSymbol.vb (1)
31Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (3)
17Private ReadOnly _interfaceMethod As ImmutableArray(Of MethodSymbol) 19Public Sub New(container As AnonymousTypeTemplateSymbol, interfaceMethod As MethodSymbol) 68Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (4)
19Private ReadOnly _getMethod As MethodSymbol 20Private ReadOnly _setMethod As MethodSymbol 77Public Overrides ReadOnly Property SetMethod As MethodSymbol 83Public Overrides ReadOnly Property GetMethod As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (2)
82Dim iEquatableEquals As MethodSymbol = New AnonymousType_IEquatable_EqualsMethodSymbol(Me, DirectCast(method, MethodSymbol))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ToStringMethodSymbol.vb (1)
35Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegate_ParameterSymbol.vb (1)
22container As MethodSymbol,
Symbols\Attributes\AttributeData.vb (1)
35Public MustOverride Shadows ReadOnly Property AttributeConstructor As MethodSymbol
Symbols\Attributes\PEAttributeData.vb (4)
25Private _attributeConstructor As MethodSymbol 53Public Overrides ReadOnly Property AttributeConstructor As MethodSymbol 150Dim attributeCtor As MethodSymbol = Nothing 170Interlocked.CompareExchange(Of MethodSymbol)(
Symbols\Attributes\RetargetingAttributeData.vb (3)
21Private ReadOnly _attributeConstructor As MethodSymbol 27ByVal attributeConstructor As MethodSymbol, 46Public Overrides ReadOnly Property AttributeConstructor As MethodSymbol
Symbols\Attributes\SourceAttributeData.vb (4)
24Private ReadOnly _attributeConstructor As MethodSymbol 34ByVal attrMethod As MethodSymbol, 59Public Overrides ReadOnly Property AttributeConstructor As MethodSymbol 127Friend Overloads Shared Function GetTargetAttributeSignatureIndex(compilation As VisualBasicCompilation, attributeClass As NamedTypeSymbol, attributeConstructor As MethodSymbol, description As AttributeDescription) As Integer
Symbols\ConstraintsHelper.vb (4)
546method As MethodSymbol, 573method As MethodSymbol, 595method As MethodSymbol, 1236Private Function RequiresChecking(method As MethodSymbol) As Boolean
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (5)
232Dim methKind As MethodKind = DirectCast(symbol, MethodSymbol).MethodKind 237AddReferencedSymbolWithDependents(DirectCast(symbol, MethodSymbol).AssociatedSymbol, allSymbols) 287Select Case DirectCast(member, MethodSymbol).MethodKind 343ValidateMethod(DirectCast(member, MethodSymbol)) 369Friend Shared Sub ValidateMethod(method As MethodSymbol)
Symbols\ErrorMethodSymbol.vb (2)
60Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 62Return ImmutableArray(Of MethodSymbol).Empty
Symbols\EventSymbol.vb (4)
56Public MustOverride ReadOnly Property AddMethod As MethodSymbol 58Public MustOverride ReadOnly Property RemoveMethod As MethodSymbol 60Public MustOverride ReadOnly Property RaiseMethod As MethodSymbol 168Private Function DelegateInvokeMethod() As MethodSymbol
Symbols\LabelSymbol.vb (1)
78Public Overridable ReadOnly Property ContainingMethod As MethodSymbol
Symbols\MemberSignatureComparer.vb (3)
56Return _methodComparer.Equals(DirectCast(sym1, MethodSymbol), DirectCast(sym2, MethodSymbol)) 73Return _methodComparer.GetHashCode(DirectCast(sym, MethodSymbol))
Symbols\MergedNamespaceSymbol.vb (4)
435Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 567Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 575Friend Overrides Sub GetExtensionMethods(methods As ArrayBuilder(Of MethodSymbol), name As String) 646Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)))
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (4)
166Private Shared Function FindMethodBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, targetMemberSignatureHeader As SignatureHeader, targetMemberTypeParamCount As Integer, targetParamInfo As ParamInfo(Of TypeSymbol)()) As MethodSymbol 168Dim method = TryCast(member, MethodSymbol) 184Private Shared Function MethodSymbolMatchesParamInfo(candidateMethod As MethodSymbol, targetParamInfo As ParamInfo(Of TypeSymbol)()) As Boolean 231Private Shared Function ReturnTypesMatch(candidateMethod As MethodSymbol, ByRef targetReturnParam As ParamInfo(Of TypeSymbol)) As Boolean
Symbols\Metadata\PE\MetadataDecoder.vb (4)
19Inherits MetadataDecoder(Of PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol) 421Protected Overrides Function FindMethodSymbolInType(typeSymbol As TypeSymbol, targetMethodDef As MethodDefinitionHandle) As MethodSymbol 440Return DirectCast(memberRefDecoder.FindMember(targetMethodDef, methodsOnly:=True), MethodSymbol) 509Protected Overrides Function GetMethodHandle(method As MethodSymbol) As MethodDefinitionHandle
Symbols\Metadata\PE\PEEventSymbol.vb (3)
217Public Overrides ReadOnly Property AddMethod As MethodSymbol 223Public Overrides ReadOnly Property RemoveMethod As MethodSymbol 229Public Overrides ReadOnly Property RaiseMethod As MethodSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (3)
41Private _lazyExplicitMethodImplementations As ImmutableArray(Of MethodSymbol) 1150Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1178Dim explicitInterfaceImplementationsBuilder = ArrayBuilder(Of MethodSymbol).GetInstance()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (5)
525Friend Overrides Iterator Function GetMethodsToEmit() As IEnumerable(Of MethodSymbol) 538Dim method = DirectCast(member, MethodSymbol) 633If DirectCast(x, MethodSymbol).IsDefaultValueTypeConstructor() Then 635ElseIf DirectCast(y, MethodSymbol).IsDefaultValueTypeConstructor() Then 981map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)),
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (6)
17Friend Shared Function GetPropertiesForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of PropertySymbol) 21Friend Shared Function GetEventsForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of EventSymbol) 26Private Shared Function GetSymbolsForExplicitlyImplementedAccessor(Of T As Symbol)(accessor As MethodSymbol) As ISet(Of T) 31Dim implementedAccessors As ImmutableArray(Of MethodSymbol) = accessor.ExplicitInterfaceImplementations 51Friend Shared Function GetDeclaredAccessibilityFromAccessors(accessor1 As MethodSymbol, accessor2 As MethodSymbol) As Accessibility
Symbols\Metadata\PE\PEPropertySymbol.vb (4)
307Public Overrides ReadOnly Property GetMethod As MethodSymbol 313Public Overrides ReadOnly Property SetMethod As MethodSymbol 372Dim setMethod As MethodSymbol = prop.SetMethod 380Dim getMethod As MethodSymbol = prop.GetMethod
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
330Dim inherited = (_containingSymbol.Kind = SymbolKind.Method) AndAlso DirectCast(_containingSymbol, MethodSymbol).IsOverrides
Symbols\MethodSignatureComparer.vb (17)
98Implements IEqualityComparer(Of MethodSymbol) 232Public Overloads Function Equals(method1 As MethodSymbol, method2 As MethodSymbol) As Boolean _ 233Implements IEqualityComparer(Of MethodSymbol).Equals 287Public Overloads Function GetHashCode(method As MethodSymbol) As Integer _ 288Implements IEqualityComparer(Of MethodSymbol).GetHashCode 313method1 As MethodSymbol, 314method2 As MethodSymbol, 420Private _method As MethodSymbol 422Public Sub New(method As MethodSymbol) 764Private Shared Function HaveSameReturnTypes(method1 As MethodSymbol, typeSubstitution1 As TypeSubstitution, 765method2 As MethodSymbol, typeSubstitution2 As TypeSubstitution, 798Private Shared Function GetTypeSubstitution(method As MethodSymbol) As TypeSubstitution 833Friend Shared Function HaveSameConstraints(method1 As MethodSymbol, method2 As MethodSymbol) As Boolean 837Private Shared Function HaveSameConstraints(method1 As MethodSymbol, 839method2 As MethodSymbol,
Symbols\MethodSymbol.vb (18)
82Public Overridable Shadows ReadOnly Property OriginalDefinition As MethodSymbol 100Public Overridable ReadOnly Property ConstructedFrom As MethodSymbol 319Public Overridable ReadOnly Property OverriddenMethod As MethodSymbol 330Return OverriddenMembersResult(Of MethodSymbol).GetOverriddenMember(Me, Me.OriginalDefinition.OverriddenMethod) 339Friend Overridable ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol) 344Return OverrideHidingHelper(Of MethodSymbol).MakeOverriddenMembers(Me) 358Public MustOverride ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 622Public Overridable Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 637Public Function Construct(ParamArray typeArguments() As TypeSymbol) As MethodSymbol 658''' True if this <see cref="MethodSymbol"/> type supports retrieving the Me parameter 755Public Overridable ReadOnly Property ReducedFrom As MethodSymbol 774Friend Overridable ReadOnly Property CallsiteReducedFromMethod As MethodSymbol 817Friend Function ReduceExtensionMethod(instanceType As TypeSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 825Public Function ReduceExtensionMethod(instanceType As TypeSymbol, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 913Public Overridable ReadOnly Property TupleUnderlyingMethod() As MethodSymbol 937Return ImmutableArrayExtensions.Cast(Of MethodSymbol, IMethodSymbol)(Me.ExplicitInterfaceImplementations) 1028Public Overridable ReadOnly Property PartialImplementationPart As MethodSymbol 1038Public Overridable ReadOnly Property PartialDefinitionPart As MethodSymbol
Symbols\MethodSymbolExtensions.vb (6)
21Friend Function CanBeCalledWithNoParameters(method As MethodSymbol) As Boolean 65Friend Function IsPartial(method As MethodSymbol) As Boolean 75Friend Function IsPartialWithoutImplementation(method As MethodSymbol) As Boolean 84Friend Function IsUserDefinedOperator(method As MethodSymbol) As Boolean 97Friend Function ConstructIfGeneric(method As MethodSymbol, typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
Symbols\MissingNamespaceSymbol.vb (1)
131Friend Overrides Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol))
Symbols\NamedTypeSymbol.vb (12)
230Public Overridable ReadOnly Property DelegateInvokeMethod As MethodSymbol 241Dim method = TryCast(methods(0), MethodSymbol) 305Friend Overridable Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol)) 309Dim method = DirectCast(member, MethodSymbol) 327map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)), 339methods As ArrayBuilder(Of MethodSymbol), 384Public ReadOnly Property InstanceConstructors As ImmutableArray(Of MethodSymbol) 386Return GetConstructors(Of MethodSymbol)(includeInstance:=True, includeShared:=False) 393Public ReadOnly Property SharedConstructors As ImmutableArray(Of MethodSymbol) 395Return GetConstructors(Of MethodSymbol)(includeInstance:=False, includeShared:=True) 402Public ReadOnly Property Constructors As ImmutableArray(Of MethodSymbol) 404Return GetConstructors(Of MethodSymbol)(includeInstance:=True, includeShared:=True)
Symbols\NamedTypeSymbolExtensions.vb (1)
37Dim partialImpl = DirectCast(child, MethodSymbol).PartialImplementationPart
Symbols\NamespaceOrTypeSymbol.vb (2)
204Dim method = DirectCast(member, MethodSymbol) 231method As MethodSymbol,
Symbols\NamespaceSymbol.vb (11)
433Friend MustOverride Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol)) 462Friend Overridable Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 471Friend Overridable Sub GetExtensionMethods(methods As ArrayBuilder(Of MethodSymbol), name As String) 489map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)), 495Dim bucket As ArrayBuilder(Of MethodSymbol) = Nothing 499Dim method = DirectCast(member, MethodSymbol) 504bucket = ArrayBuilder(Of MethodSymbol).GetInstance() 518Friend Sub AddMemberIfExtension(bucket As ArrayBuilder(Of MethodSymbol), member As Symbol) 520Dim method = DirectCast(member, MethodSymbol) 533Friend Overridable Sub BuildExtensionMethodsMapBucket(bucket As ArrayBuilder(Of MethodSymbol), method As MethodSymbol)
Symbols\ObsoleteAttributeHelpers.vb (3)
62symbol = DirectCast(symbol, MethodSymbol).AssociatedSymbol 161If symbol.IsAccessor() AndAlso (DirectCast(symbol, MethodSymbol).AssociatedSymbol).Kind = SymbolKind.Property Then 162Dim accessorSymbol = DirectCast(symbol, MethodSymbol)
Symbols\PEOrSourceOrMergedNamespaceSymbol.vb (4)
88Friend Overrides Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol)) 115methods.AddRange(match.As(Of MethodSymbol)) 141Dim map As New Dictionary(Of String, ArrayBuilder(Of MethodSymbol))(CaseInsensitiveComparison.Comparer) 149For Each pair As KeyValuePair(Of String, ArrayBuilder(Of MethodSymbol)) In map
Symbols\PropertySymbol.vb (9)
153Dim mostDerivedSet As MethodSymbol = Me.GetMostDerivedSetMethod() 172If If(TryCast(containingMember, MethodSymbol)?.MethodKind <> MethodKind.Constructor, True) Then 215((fromMember.Kind = SymbolKind.Method AndAlso DirectCast(fromMember, MethodSymbol).IsAnyConstructor) OrElse 224Public MustOverride ReadOnly Property GetMethod As MethodSymbol 235Friend Function GetMostDerivedGetMethod() As MethodSymbol 251Public MustOverride ReadOnly Property SetMethod As MethodSymbol 262Friend Function GetMostDerivedSetMethod() As MethodSymbol 345Friend Function GetAccessorOverride(getter As Boolean) As MethodSymbol 534Friend Sub CloneParameters(method As MethodSymbol, parameters As ArrayBuilder(Of ParameterSymbol))
Symbols\ReducedExtensionMethodSymbol.vb (9)
23Private ReadOnly _curriedFromMethod As MethodSymbol 37possiblyExtensionMethod As MethodSymbol, 41) As MethodSymbol 208curriedFromMethod As MethodSymbol, 294Public Overrides ReadOnly Property ReducedFrom As MethodSymbol 300Friend Overrides ReadOnly Property CallsiteReducedFromMethod As MethodSymbol 481Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol 551Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 553Return ImmutableArray(Of MethodSymbol).Empty
Symbols\Retargeting\RetargetingEventSymbol.vb (3)
87Public Overrides ReadOnly Property AddMethod As MethodSymbol 172Public Overrides ReadOnly Property RaiseMethod As MethodSymbol 178Public Overrides ReadOnly Property RemoveMethod As MethodSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (7)
35Private ReadOnly _underlyingMethod As MethodSymbol 55Private _lazyExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 59Public Sub New(retargetingModule As RetargetingModuleSymbol, underlyingMethod As MethodSymbol) 77Public ReadOnly Property UnderlyingMethod As MethodSymbol 456Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 469Private Function RetargetExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol) 475Dim builder = ArrayBuilder(Of MethodSymbol).GetInstance()
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (5)
197Friend Overrides Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol)) 210map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)), 216Friend Overrides Sub GetExtensionMethods(methods As ArrayBuilder(Of MethodSymbol), appendThrough As NamespaceSymbol, Name As String) 232Friend Overrides Function AddExtensionMethodLookupSymbolsInfoViabilityCheck(method As MethodSymbol, options As LookupOptions, nameSet As LookupSymbolsInfo, originalBinder As Binder) As Boolean 313Friend Overrides Iterator Function GetMethodsToEmit() As IEnumerable(Of MethodSymbol)
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (6)
220Friend Overrides Sub AppendProbableExtensionMethods(name As String, methods As ArrayBuilder(Of MethodSymbol)) 245Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 252Friend Overrides Sub GetExtensionMethods(methods As ArrayBuilder(Of MethodSymbol), name As String) 262Friend Overrides Sub BuildExtensionMethodsMapBucket(bucket As ArrayBuilder(Of MethodSymbol), method As MethodSymbol) 280Friend Overrides Function AddExtensionMethodLookupSymbolsInfoViabilityCheck(method As MethodSymbol, options As LookupOptions, nameSet As LookupSymbolsInfo, originalBinder As Binder) As Boolean
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
103Public Overrides ReadOnly Property GetMethod As MethodSymbol 109Public Overrides ReadOnly Property SetMethod As MethodSymbol
Symbols\Retargeting\RetargetingSymbolTranslator.vb (23)
39Return New RetargetingMethodSymbol(Me, DirectCast(symbol, MethodSymbol)) 669Dim oldAttributeCtor As MethodSymbol = oldAttribute.AttributeConstructor 670Dim newAttributeCtor As MethodSymbol = If(oldAttributeCtor Is Nothing, 797Dim unused = DirectCast(underlyingSymbol, MethodSymbol).GetReturnTypeAttributes() 801oldAttributes = DirectCast(underlyingSymbol, MethodSymbol).GetReturnTypeAttributes() 877Public Function Retarget(method As MethodSymbol) As RetargetingMethodSymbol 881Public Function Retarget(method As MethodSymbol, retargetedMethodComparer As IEqualityComparer(Of MethodSymbol)) As MethodSymbol 913Private Function FindMethodInRetargetedType(method As MethodSymbol, retargetedType As NamedTypeSymbol, retargetedMethodComparer As IEqualityComparer(Of MethodSymbol)) As MethodSymbol 921Private ReadOnly _toFind As MethodSymbol 923Private Sub New(retargetingModule As RetargetingModuleSymbol, retargetedType As NamedTypeSymbol, toFind As MethodSymbol) 932method As MethodSymbol, 934retargetedMethodComparer As IEqualityComparer(Of MethodSymbol) 935) As MethodSymbol 956method As MethodSymbol, 958retargetedMethodComparer As IEqualityComparer(Of MethodSymbol) 959) As MethodSymbol 984ImmutableArray(Of MethodSymbol).Empty) 988Dim retargetedMethod = DirectCast(retargetedMember, MethodSymbol) 1134Public Overrides Function VisitMethod(symbol As MethodSymbol, options As RetargetOptions) As Symbol
Symbols\SignatureOnlyMethodSymbol.vb (5)
31Private ReadOnly _explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 36ByVal explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol), 112Public Overrides ReadOnly Property ExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol) 308Friend Overrides ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol) 314Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\SignatureOnlyPropertySymbol.vb (2)
148Public Overrides ReadOnly Property GetMethod As MethodSymbol 154Public Overrides ReadOnly Property SetMethod As MethodSymbol
Symbols\Source\CustomEventAccessorSymbol.vb (3)
19Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 85Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 98Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\Source\CustomModifierUtils.vb (2)
17sourceMethod As MethodSymbol, 30Dim constructedMethod As MethodSymbol = sourceMethod.ConstructIfGeneric(destinationTypeParameters)
Symbols\Source\ImplementsHelper.vb (9)
27Return StaticCast(Of Symbol).From(DirectCast(member, MethodSymbol).ExplicitInterfaceImplementations) 47Return sourceMethod.GetImplementingLocation(DirectCast(implementedSym, MethodSymbol)) 367Dim accessorToCheck As MethodSymbol = [property].GetMethod 429Dim results = MethodSignatureComparer.DetailedCompare(DirectCast(implementedSym, MethodSymbol), DirectCast(implementingSym, MethodSymbol), 473Dim implementedPropertyGetMethod As MethodSymbol = implementedProperty.GetMethod 478Dim implementedPropertySetMethod As MethodSymbol = implementedProperty.SetMethod 541implementedMethod As MethodSymbol, 565TypeOf interfaceMember Is MethodSymbol OrElse
Symbols\Source\LambdaSymbol.vb (3)
136meParameter = DirectCast(ContainingSymbol, MethodSymbol).MeParameter 149Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 151Return ImmutableArray(Of MethodSymbol).Empty
Symbols\Source\LocalSymbol.vb (1)
155Debug.Assert((Me.IsFunctionValue AndAlso _container.Kind = SymbolKind.Method AndAlso DirectCast(_container, MethodSymbol).MethodKind = MethodKind.LambdaMethod) OrElse type.Equals(ComputeType()))
Symbols\Source\OverrideHidingHelper.vb (26)
134Return MethodSignatureComparer.DetailedCompare(DirectCast(sym1, MethodSymbol), DirectCast(sym2, MethodSymbol), comparisons, stopIfAny) 150Dim methodMember = DirectCast(member, MethodSymbol) 153OverrideHidingHelper(Of MethodSymbol).CheckOverrideMember(methodMember, methodMember.OverriddenMembers, diagnostics) 259Debug.Assert(unimplementedMembers.Contains(DirectCast(member, MethodSymbol).AssociatedSymbol)) 285Dim hidingMethod = DirectCast(hidingMember, MethodSymbol) 291Return OverrideHidingHelper(Of MethodSymbol).SignaturesMatch(hidingMethod, DirectCast(hiddenMember, MethodSymbol), Nothing, exactMatchIgnoringCustomModifiers) AndAlso exactMatchIgnoringCustomModifiers 358(member.Kind = SymbolKind.Method AndAlso DirectCast(member, MethodSymbol).IsUserDefinedOperator() <> DirectCast(hiddenMember, MethodSymbol).IsUserDefinedOperator()) OrElse 473Dim associatedHidingSymbol = DirectCast(hidingMember, MethodSymbol).AssociatedSymbol 496Select Case DirectCast(sym, MethodSymbol).MethodKind 504Debug.Assert(False, String.Format("Unexpected method kind '{0}'", DirectCast(sym, MethodSymbol).MethodKind)) 514Return DirectCast(sym, MethodSymbol).OverriddenMethod 529Public Shared Function RequiresExplicitOverride(method As MethodSymbol) As Boolean 578OverrideHidingHelper(Of MethodSymbol).s_runtimeSignatureComparer = MethodSignatureComparer.RuntimeMethodSignatureComparer 621Debug.Assert(Not (TypeOf overridingSym Is MethodSymbol AndAlso DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).ConstructedFrom <> overridingSym)) 625Debug.Assert(Not (TypeOf overridingSym Is MethodSymbol AndAlso 626(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse 627DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet))) 687Debug.Assert(Not (TypeOf overridingSym Is MethodSymbol AndAlso 688(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse 689DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet))) 975Friend Shared Sub CheckOverridePropertyAccessor(overridingAccessor As MethodSymbol, 976overriddenAccessor As MethodSymbol,
Symbols\Source\SourceClonedParameterSymbol.vb (3)
21Friend Sub New(originalParam As SourceParameterSymbolBase, newOwner As MethodSymbol, newOrdinal As Integer) 162Return New SourceClonedParameterSymbolWithCustomModifiers(Me, DirectCast(Me.ContainingSymbol, MethodSymbol), Me.Ordinal, type, customModifiers, refCustomModifiers) 174newOwner As MethodSymbol,
Symbols\Source\SourceDelegateClonedParameterSymbolForBeginAndEndInvoke.vb (1)
9Public Sub New(originalParam As SourceParameterSymbol, newOwner As MethodSymbol, ordinal As Integer)
Symbols\Source\SourceDelegateMethodSymbol.vb (6)
59Friend Overrides ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol) 61Return OverriddenMembersResult(Of MethodSymbol).Empty 69<Out> ByRef constructor As MethodSymbol, 70<Out> ByRef beginInvoke As MethodSymbol, 71<Out> ByRef endInvoke As MethodSymbol, 72<Out> ByRef invoke As MethodSymbol,
Symbols\Source\SourceEventSymbol.vb (11)
28Private ReadOnly _addMethod As MethodSymbol 29Private ReadOnly _removeMethod As MethodSymbol 30Private ReadOnly _raiseMethod As MethodSymbol 388Friend Function GetAccessorImplementations(kind As MethodKind) As ImmutableArray(Of MethodSymbol) 393Return ImmutableArray(Of MethodSymbol).Empty 395Dim builder As ArrayBuilder(Of MethodSymbol) = ArrayBuilder(Of MethodSymbol).GetInstance() 399Dim accessor As MethodSymbol 488Public Overrides ReadOnly Property AddMethod As MethodSymbol 494Public Overrides ReadOnly Property RemoveMethod As MethodSymbol 500Public Overrides ReadOnly Property RaiseMethod As MethodSymbol
Symbols\Source\SourceLabelSymbol.vb (3)
20Private ReadOnly _containingMethod As MethodSymbol 23Public Sub New(labelNameToken As SyntaxToken, containingMethod As MethodSymbol, binder As Binder) 42Public Overrides ReadOnly Property ContainingMethod As MethodSymbol
Symbols\Source\SourceMemberContainerTypeSymbol.vb (17)
445GenerateVarianceDiagnosticsForMethod(DirectCast(member, MethodSymbol), diagnostics, infosBuffer) 532Dim invoke As MethodSymbol = Me.DelegateInvokeMethod 955method As MethodSymbol, 1152haveExtensionMethods = (sym.Kind = SymbolKind.Method AndAlso DirectCast(sym, MethodSymbol).IsExtensionMethod) 2778(DirectCast(sym, MethodSymbol).MethodKind = MethodKind.Constructor OrElse 2779DirectCast(sym, MethodSymbol).MethodKind = MethodKind.SharedConstructor) 2782For Each method As MethodSymbol In symbols 3194Friend Function CreateSharedConstructorsForConstFieldsIfRequired(binder As Binder, diagnostics As BindingDiagnosticBag) As MethodSymbol 3349Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)), 3450Dim method = TryCast(interfaceMember, MethodSymbol) 3501Dim operatorsKnownToHavePair As HashSet(Of MethodSymbol) = Nothing 3606<[In](), Out()> ByRef operatorsKnownToHavePair As HashSet(Of MethodSymbol), 3615Dim method = DirectCast(member, MethodSymbol) 3694Dim otherMethod = DirectCast(other, MethodSymbol) 3707operatorsKnownToHavePair = New HashSet(Of MethodSymbol)(ReferenceEqualityComparer.Instance) 3731method As MethodSymbol, 3743Dim nextMethod = DirectCast(nextMember, MethodSymbol)
Symbols\Source\SourceMemberMethodSymbol.vb (13)
33Private _lazyImplementedMethods As ImmutableArray(Of MethodSymbol) 350Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 355Dim implementedMethods As ImmutableArray(Of MethodSymbol) 372Dim implementation As MethodSymbol = Me.PartialImplementationPart 374ImmutableArray(Of MethodSymbol).Empty, 387Private Function GetExplicitInterfaceImplementations(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of MethodSymbol) 405Return ProcessImplementsClause(Of MethodSymbol)(syntax.ImplementsClause, Me, DirectCast(ContainingType, SourceMemberContainerTypeSymbol), binder, diagBag) 409Return ImmutableArray(Of MethodSymbol).Empty 466Public Overrides ReadOnly Property PartialDefinitionPart As MethodSymbol 472Public Overrides ReadOnly Property PartialImplementationPart As MethodSymbol 771Dim hookupMethod As MethodSymbol = Nothing 797Dim handlingMethod As MethodSymbol = Me 814ImmutableArray.Create(Of MethodSymbol)(handlingMethod),
Symbols\Source\SourceMethodSymbol.vb (15)
590Public NotOverridable Overrides ReadOnly Property ConstructedFrom As MethodSymbol 621Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 623Return ImmutableArray(Of MethodSymbol).Empty 1099Dim accessor As MethodSymbol = Nothing 1136SymbolKind.Method, GetMethodLocationFromSyntax(syntax), tree), MethodSymbol) 1151Friend Function GetImplementingLocation(implementedMethod As MethodSymbol) As Location 1445Dim entryPointMethod As MethodSymbol = compilation.GetEntryPoint(CancellationToken.None) 1766Dim methodImpl As MethodSymbol = If(Me.IsPartial, PartialImplementationPart, Me) 2052Friend MustOverride Overrides ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol) 2071Private _lazyOverriddenMethods As OverriddenMembersResult(Of MethodSymbol) 2127Dim overriddenMembers As OverriddenMembersResult(Of MethodSymbol) 2131overriddenMembers = OverriddenMembersResult(Of MethodSymbol).Empty 2159overriddenMembers = OverrideHidingHelper(Of MethodSymbol). 2168explicitInterfaceImplementations:=ImmutableArray(Of MethodSymbol).Empty, 2384Friend NotOverridable Overrides ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol)
Symbols\Source\SourceNamedTypeSymbol.vb (7)
246Dim ctor As MethodSymbol = Nothing 247Dim beginInvoke As MethodSymbol = Nothing 248Dim endInvoke As MethodSymbol = Nothing 249Dim invoke As MethodSymbol = Nothing 2681Dim notUsed = DirectCast(member, MethodSymbol).HandledEvents 2720For Each method As MethodSymbol In symbols 2729For Each method As MethodSymbol In symbols
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (19)
93Public Function GetCorrespondingComClassInterfaceMethod(method As MethodSymbol) As MethodSymbol 381If DirectCast(member, MethodSymbol).MethodKind <> MethodKind.Ordinary Then 398Dim getter As MethodSymbol = prop.GetMethod 399Dim setter As MethodSymbol = prop.SetMethod 451If DirectCast(member, MethodSymbol).IsGenericMethod Then 546Dim method = DirectCast(member, MethodSymbol) 602getter = New SynthesizedComMethod(Me, DirectCast(getterPair.Key, MethodSymbol), 607setter = New SynthesizedComMethod(Me, DirectCast(setterPair.Key, MethodSymbol), 683Dim invoke As MethodSymbol = DirectCast(member.Type, NamedTypeSymbol).DelegateInvokeMethod 1050Public ReadOnly ClonedFrom As MethodSymbol 1055Public Sub New(container As SynthesizedComInterface, clone As MethodSymbol, synthesizedDispId As Integer) 1139Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 1378Return DirectCast(attributeSource, MethodSymbol).GetReturnTypeAttributes() 1410Public Sub New(container As SynthesizedComInterface, [event] As EventSymbol, clone As MethodSymbol, synthesizedDispId As Integer) 1756Public Overrides ReadOnly Property GetMethod As MethodSymbol 1826Public Overrides ReadOnly Property SetMethod As MethodSymbol 1931Friend Function GetCorrespondingComClassInterfaceMethod(method As MethodSymbol) As MethodSymbol
Symbols\Source\SourceParameterSymbol.vb (6)
103If If(TryCast(Me.ContainingSymbol, MethodSymbol)?.MethodKind = MethodKind.DelegateInvoke, False) AndAlso 120Dim containingMethod = TryCast(ContainingSymbol, MethodSymbol) 186If containingSymbol.Kind = SymbolKind.Method AndAlso DirectCast(containingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then 207Select Case DirectCast(containingSymbol, MethodSymbol).MethodKind 451Dim methodSymbol = DirectCast(container, MethodSymbol) 496DirectCast(ContainingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (5)
20Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 119Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol 125Friend Overrides ReadOnly Property OverriddenMembers As OverriddenMembersResult(Of MethodSymbol) 127Return OverriddenMembersResult(Of MethodSymbol).Empty 333Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol)
Symbols\Source\SourcePropertyClonedParameterSymbolForAccessors.vb (1)
9Public Sub New(originalParam As SourceParameterSymbol, newOwner As MethodSymbol)
Symbols\Source\SourcePropertySymbol.vb (10)
34Private _getMethod As MethodSymbol 35Private _setMethod As MethodSymbol 290Friend Sub CloneParametersForAccessor(method As MethodSymbol, parameterBuilder As ArrayBuilder(Of ParameterSymbol)) 291Dim overriddenMethod As MethodSymbol = method.OverriddenMethod 704Public Overrides ReadOnly Property GetMethod As MethodSymbol 710Public Overrides ReadOnly Property SetMethod As MethodSymbol 938Friend Function GetAccessorImplementations(getter As Boolean) As ImmutableArray(Of MethodSymbol) 943Return ImmutableArray(Of MethodSymbol).Empty 945Dim builder As ArrayBuilder(Of MethodSymbol) = ArrayBuilder(Of MethodSymbol).GetInstance()
Symbols\Source\SynthesizedEntryPointSymbol.vb (9)
169Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 171Return ImmutableArray(Of MethodSymbol).Empty 197Private Shared Function GetRequiredMethod(type As TypeSymbol, methodName As String, diagnostics As BindingDiagnosticBag) As MethodSymbol 198Dim method = TryCast(type.GetMembers(methodName).SingleOrDefault(), MethodSymbol) 207Private Shared Function CreateParameterlessCall(syntax As VisualBasicSyntaxNode, receiver As BoundExpression, method As MethodSymbol) As BoundCall 222Private ReadOnly _getAwaiterMethod As MethodSymbol 223Private ReadOnly _getResultMethod As MethodSymbol 225Friend Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol, getAwaiterMethod As MethodSymbol, getResultMethod As MethodSymbol)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (12)
22Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 36Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 138Dim accessor As MethodSymbol = If(isAddMethod, eventSymbol.AddMethod, eventSymbol.RemoveMethod) 154Dim getOrCreateMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember( 157useSiteInfo), MethodSymbol) 173Dim processHandlerMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember( 176useSiteInfo), MethodSymbol) 279Dim accessor As MethodSymbol = If(isAddMethod, eventSymbol.AddMethod, eventSymbol.RemoveMethod) 286Dim updateMethod As MethodSymbol = DirectCast(Binder.GetSpecialTypeMember(compilation.Assembly, updateMethodId, useSiteInfo), MethodSymbol) 304Dim compareExchangeMethod As MethodSymbol = DirectCast(Binder.GetWellKnownTypeMember(compilation, WellKnownMember.System_Threading_Interlocked__CompareExchange_T, useSiteInfo), MethodSymbol)
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
70Dim runMethod = DirectCast(Binder.GetWellKnownTypeMember(container.DeclaringCompilation, WellKnownMember.System_Windows_Forms_Application__RunForm, useSiteInfo), MethodSymbol)
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (2)
61Public Overrides ReadOnly Property GetMethod As MethodSymbol 67Public Overrides ReadOnly Property SetMethod As MethodSymbol
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
57constructor As MethodSymbol,
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (5)
17Private _lazyExplicitImplementations As ImmutableArray(Of MethodSymbol) ' lazily populated with explicit implementations 30Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 42Private Function GetExplicitInterfaceImplementations() As ImmutableArray(Of MethodSymbol) 48Return ImmutableArray(Of MethodSymbol).Empty 51Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\SubstitutedEventSymbol.vb (3)
161Public Overrides ReadOnly Property AddMethod As MethodSymbol 167Public Overrides ReadOnly Property RemoveMethod As MethodSymbol 173Public Overrides ReadOnly Property RaiseMethod As MethodSymbol
Symbols\SubstitutedMethodSymbol.vb (24)
46Public MustOverride Overrides ReadOnly Property OriginalDefinition As MethodSymbol 108Public Overrides ReadOnly Property ReducedFrom As MethodSymbol 150Public MustOverride Overrides ReadOnly Property ConstructedFrom As MethodSymbol 331Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 405Public MustOverride Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 430Public MustOverride Overrides ReadOnly Property OriginalDefinition As MethodSymbol 432Public Overrides ReadOnly Property ConstructedFrom As MethodSymbol 487Private ReadOnly _originalDefinition As MethodSymbol 490Public Sub New(container As SubstitutedNamedType, originalDefinition As MethodSymbol) 509Public Overrides ReadOnly Property OriginalDefinition As MethodSymbol 521Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 569originalDefinition As MethodSymbol 605Debug.Assert(Not typeParameters.IsDefault AndAlso typeParameters.Length = DirectCast(substitution.TargetGenericDefinition, MethodSymbol).Arity) 630Public Overrides ReadOnly Property OriginalDefinition As MethodSymbol 632Return DirectCast(_substitution.TargetGenericDefinition, MethodSymbol) 663Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 720Public NotOverridable Overrides ReadOnly Property OriginalDefinition As MethodSymbol 722Return DirectCast(_substitution.TargetGenericDefinition, MethodSymbol) 732Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 806Public Overrides ReadOnly Property ConstructedFrom As MethodSymbol 843Debug.Assert(typeArguments.Length = DirectCast(substitution.TargetGenericDefinition, MethodSymbol).Arity) 848Public Overrides ReadOnly Property ConstructedFrom As MethodSymbol 872Friend Overrides ReadOnly Property CallsiteReducedFromMethod As MethodSymbol 874Dim reducedDef As MethodSymbol = Me.ReducedFrom
Symbols\SubstitutedNamedType.vb (6)
311Protected Overridable Function SubstituteTypeParametersForMemberMethod(memberMethod As MethodSymbol) As SubstitutedMethodSymbol 363Dim methodSubstitutions = members.OfType(Of MethodSymbol)().ToDictionary(Function(m) m, Function(m) SubstituteTypeParametersForMemberMethod(m)) 372result.Add(methodSubstitutions(DirectCast(member, MethodSymbol))) 410Private Shared Function GetMethodSubstitute(methodSubstitutions As Dictionary(Of MethodSymbol, SubstitutedMethodSymbol), method As MethodSymbol) As SubstitutedMethodSymbol 455Dim memberMethod = DirectCast(member, MethodSymbol)
Symbols\SubstitutedPropertySymbol.vb (2)
118Public Overrides ReadOnly Property GetMethod As MethodSymbol 124Public Overrides ReadOnly Property SetMethod As MethodSymbol
Symbols\SymbolExtensions.vb (16)
57Dim methodSymbol = DirectCast(target, MethodSymbol) 166Dim method = DirectCast(sym, MethodSymbol) 221Friend Function IsMetadataVirtual(method As MethodSymbol) As Boolean 229Dim definition As MethodSymbol = method.OriginalDefinition 237Public Function IsAccessor(methodSymbol As MethodSymbol) As Boolean 243Return symbol.Kind = SymbolKind.Method AndAlso IsAccessor(DirectCast(symbol, MethodSymbol)) 261Friend Function IsAnyConstructor(method As MethodSymbol) As Boolean 272Friend Function IsDefaultValueTypeConstructor(method As MethodSymbol) As Boolean 280Return this.Kind = SymbolKind.Method AndAlso DirectCast(this, MethodSymbol).IsReducedExtensionMethod 290Return DirectCast(sym, MethodSymbol).OverriddenMethod 307Return (DirectCast(symbol, MethodSymbol)).Arity 323Return DirectCast(sym, MethodSymbol).MeParameter 342Return DirectCast(sym, MethodSymbol).Parameters 376Return symbol.Kind = SymbolKind.Method AndAlso DirectCast(symbol, MethodSymbol).IsUserDefinedOperator() 456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction 467Dim method = DirectCast(member, MethodSymbol)
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (4)
20Private ReadOnly _attributeConstructor As MethodSymbol 25wellKnownMember As MethodSymbol, 43constructorSymbol As MethodSymbol, 75Public Overrides ReadOnly Property AttributeConstructor As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (2)
49Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 57Return If(TypeOf Me.ContainingSymbol Is MethodSymbol,
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
120Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 122Return ImmutableArray(Of MethodSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (4)
64Dim ctor As MethodSymbol = Nothing 65Dim beginInvoke As MethodSymbol = Nothing 66Dim endInvoke As MethodSymbol = Nothing 67Dim invoke As MethodSymbol = Nothing
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (3)
240Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 242Return ImmutableArray(Of MethodSymbol).Empty 246Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionConstructorSymbol.vb (1)
69Dim exceptionConstructor = factory.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Exception__ctorString, isOptional:=True)
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (2)
34Public ReadOnly Property Constructor As MethodSymbol 36Return DirectCast(_members(0), MethodSymbol)
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (7)
26Private _explicitInterfaceImplementationsBuilder As ArrayBuilder(Of MethodSymbol) = ArrayBuilder(Of MethodSymbol).GetInstance() 27Private _explicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 35Friend Sub New(implementingMethod As MethodSymbol, implementedMethod As MethodSymbol) 101Public Sub AddImplementedMethod(implemented As MethodSymbol) 111Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol)
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
191Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (3)
62Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 64Return ImmutableArray(Of MethodSymbol).Empty 68Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (2)
112Public Overrides ReadOnly Property GetMethod As MethodSymbol 118Public Overrides ReadOnly Property SetMethod As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (10)
20Protected ReadOnly _container As MethodSymbol 32Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String) 105Friend Shared Function IsMarshalAsAttributeApplicable(propertySetter As MethodSymbol) As Boolean 115Dim method = DirectCast(Me.ContainingSymbol, MethodSymbol) 274Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, Optional name As String = "") 286Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, isOptional As Boolean, defaultValue As ConstantValue) 294Public Shared Function Create(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, 305Friend Shared Function CreateSetAccessorValueParameter(setter As MethodSymbol, propertySymbol As PropertySymbol, parameterName As String) As ParameterSymbol 392Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, 427Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, location As Location)
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (8)
19Private ReadOnly _overriddenMethod As MethodSymbol 20Private ReadOnly _interfaceMethods As ImmutableArray(Of MethodSymbol) 27Optional overriddenMethod As MethodSymbol = Nothing, 28Optional interfaceMethod As MethodSymbol = Nothing, 36ImmutableArray(Of MethodSymbol).Empty, 37ImmutableArray.Create(Of MethodSymbol)(interfaceMethod)) 52Public Overrides ReadOnly Property OverriddenMethod As MethodSymbol 64Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol)
Symbols\Tuples\TupleEventSymbol.vb (6)
44Public Overrides ReadOnly Property AddMethod As MethodSymbol 46Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingEvent.AddMethod) 50Public Overrides ReadOnly Property RemoveMethod As MethodSymbol 52Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingEvent.RemoveMethod) 62Public Overrides ReadOnly Property RaiseMethod As MethodSymbol 64Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingEvent.RaiseMethod)
Symbols\Tuples\TupleMethodSymbol.vb (5)
20Private ReadOnly _underlyingMethod As MethodSymbol 32Public Overrides ReadOnly Property TupleUnderlyingMethod As MethodSymbol 38Public Overrides ReadOnly Property UnderlyingMethod As MethodSymbol 56Public Overrides ReadOnly Property ExplicitInterfaceImplementations As ImmutableArray(Of MethodSymbol) 107Public Sub New(container As TupleTypeSymbol, underlyingMethod As MethodSymbol)
Symbols\Tuples\TuplePropertySymbol.vb (4)
62Public Overrides ReadOnly Property GetMethod As MethodSymbol 64Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingProperty.GetMethod) 68Public Overrides ReadOnly Property SetMethod As MethodSymbol 70Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingProperty.SetMethod)
Symbols\Tuples\TupleTypeSymbol.vb (3)
717members.Add(New TupleMethodSymbol(Me, DirectCast(member, MethodSymbol).AsMember(currentUnderlying))) 916smallDictionary.Add(DirectCast(symbol, MethodSymbol).TupleUnderlyingMethod.OriginalDefinition, symbol) 1047Friend Overrides Function GetMethodsToEmit() As IEnumerable(Of MethodSymbol)
Symbols\TypeParameterSymbol.vb (2)
96Public ReadOnly Property DeclaringMethod As MethodSymbol 98Return TryCast(Me.ContainingSymbol, MethodSymbol)
Symbols\TypeSubstitution.vb (6)
564DirectCast(targetGenericDefinition, MethodSymbol).ConstructedFrom Is targetGenericDefinition AndAlso 567(DirectCast(targetGenericDefinition, MethodSymbol).IsGenericMethod OrElse 597typeParametersDefinitions = DirectCast(memberDefinition, MethodSymbol).TypeParameters 629targetMethod As MethodSymbol, 759arity = DirectCast(targetGenericDefinition, MethodSymbol).Arity 815typeParametersDefinitions = DirectCast(targetGenericDefinition, MethodSymbol).TypeParameters
Symbols\TypeSymbol.vb (2)
687Return ImplementsHelper.ComputeImplementationForInterfaceMember(Of MethodSymbol)( 688DirectCast(interfaceMember, MethodSymbol),
Symbols\TypeSymbolExtensions.vb (3)
766Friend Function ReferencesMethodsTypeParameter(this As TypeSymbol, method As MethodSymbol) As Boolean 771Private ReadOnly s_isMethodTypeParameterFunc As Func(Of TypeSymbol, MethodSymbol, Boolean) = AddressOf IsMethodTypeParameter 773Private Function IsMethodTypeParameter(type As TypeSymbol, method As MethodSymbol) As Boolean
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
22Public MustOverride ReadOnly Property UnderlyingMethod As MethodSymbol
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
98Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method,