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\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\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\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\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\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\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\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)