Base:
property
MethodKind
Microsoft.CodeAnalysis.VisualBasic.Symbols.MethodSymbol.MethodKind
89 references to MethodKind
Microsoft.CodeAnalysis.VisualBasic (89)
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (3)
92If method.MethodKind = MethodKind.DeclareMethod Then 106If method.MethodKind = MethodKind.UserDefinedOperator OrElse method.MethodKind = MethodKind.DeclareMethod Then
Compilation\MethodCompiler.vb (1)
771sourceMethod.MethodKind = MethodKind.Constructor AndAlso
Symbols\Source\CustomEventAccessorSymbol.vb (14)
44Return Binder.GetAccessorName(_event.MetadataName, Me.MethodKind, isWinMd:=False) 57If Me.MethodKind = MethodKind.EventRaise Then 91_event.GetAccessorImplementations(Me.MethodKind), 144Return Not (Me.MethodKind = MethodKind.EventAdd AndAlso _event.IsWindowsRuntimeEvent) 168If(Me.MethodKind = MethodKind.EventRaise, 175If Me.MethodKind = MethodKind.EventRaise Then 215If Me.MethodKind = MethodKind.EventAdd Then 221Debug.Assert(Me.MethodKind = MethodKind.EventRemove)
Symbols\Source\SourceDeclareMethodSymbol.vb (2)
36Debug.Assert(MyBase.MethodKind = MethodKind.DeclareMethod)
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
199Return Me.MethodKind = MethodKind.Constructor
Symbols\Source\SourceEventSymbol.vb (2)
104Select Case (accessor.MethodKind) 127Throw ExceptionUtilities.UnexpectedValue(accessor.MethodKind)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
1750If method IsNot Nothing AndAlso method.IsPartial AndAlso method.MethodKind = MethodKind.Ordinary Then 1800If candidate IsNot Nothing AndAlso candidate IsNot originalPartialMethod AndAlso candidate.MethodKind = MethodKind.Ordinary Then 2476Return sourceMethodSymbol.MethodKind = MethodKind.Ordinary OrElse sourceMethodSymbol.MethodKind = MethodKind.DeclareMethod
Symbols\Source\SourceMemberMethodSymbol.vb (2)
108If MethodKind = MethodKind.Ordinary Then
Symbols\Source\SourceMethodSymbol.vb (40)
1275Debug.Assert(Me.MethodKind <> MethodKind.EventAdd, 1500If Not (Me.MethodKind <> MethodKind.Ordinary AndAlso Me.MethodKind <> MethodKind.DeclareMethod) AndAlso 1624If Me.MethodKind <> MethodKind.Ordinary AndAlso Me.MethodKind <> MethodKind.DeclareMethod Then 1808Select Case Me.MethodKind 1809Case MethodKind.DeclareMethod 1813Case MethodKind.PropertyGet, MethodKind.PropertySet 1817Case MethodKind.EventAdd, MethodKind.EventRaise, MethodKind.EventRemove 1901Debug.Assert(MethodKind <> MethodKind.DeclareMethod) 1991Select Case Me.MethodKind 1992Case MethodKind.Constructor, 1993MethodKind.SharedConstructor, 1994MethodKind.PropertyGet, 1995MethodKind.PropertySet, 1996MethodKind.EventAdd, 1997MethodKind.EventRemove, 1998MethodKind.EventRaise, 1999MethodKind.Conversion, 2000MethodKind.UserDefinedOperator 2161MakeOverriddenMembers(New SignatureOnlyMethodSymbol(Me.Name, m_containingType, Me.MethodKind, 2286Select Case MethodKind 2287Case MethodKind.Constructor, 2288MethodKind.SharedConstructor, 2289MethodKind.EventRemove, 2290MethodKind.EventRaise 2295Case MethodKind.EventAdd 2301Case MethodKind.PropertyGet, MethodKind.PropertySet 2323If Me.MethodKind = MethodKind.UserDefinedOperator Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (18)
37If(flags.ToMethodKind() = MethodKind.PropertyGet, flags, flags And Not SourceMemberFlags.Iterator), 122Return m_property.GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet)) 226Select Case MethodKind 227Case MethodKind.PropertyGet 240Case MethodKind.PropertySet 294Return If(MethodKind = MethodKind.PropertyGet, 339m_property.GetAccessorImplementations(getter:=(MethodKind = MethodKind.PropertyGet)), 354Return If(Me.MethodKind = MethodKind.PropertySet, ImmutableArray(Of CustomModifier).Empty, m_property.TypeCustomModifiers) 368Debug.Assert(Me.MethodKind = MethodKind.PropertySet) 374Return If(Me.MethodKind = MethodKind.PropertyGet, m_property, Nothing) 397Dim isSetter As Boolean = (method.MethodKind = MethodKind.PropertySet)
Symbols\Symbol_Attributes.vb (1)
551Dim accessorName = TryGetAccessorDisplayName(method.MethodKind)