30 overrides of MethodKind
Microsoft.CodeAnalysis.VisualBasic (30)
Binding\Binder_XmlLiterals.vb (1)
1922Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (2)
57Public Overrides ReadOnly Property MethodKind As MethodKind 89Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (2)
76Public Overrides ReadOnly Property MethodKind As MethodKind 108Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\ErrorMethodSymbol.vb (1)
191Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
357Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\ReducedExtensionMethodSymbol.vb (1)
353Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
438Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SignatureOnlyMethodSymbol.vb (1)
124Public Overrides ReadOnly Property MethodKind() As MethodKind
Symbols\Source\LambdaSymbol.vb (1)
276Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SourceMethodSymbol.vb (1)
630Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1235Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
163Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
541Public Overrides ReadOnly Property MethodKind As MethodKind 556Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
105Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
158Public Overrides ReadOnly Property MethodKind As MethodKind 203Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (2)
130Public Overrides ReadOnly Property MethodKind As MethodKind 178Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SubstitutedMethodSymbol.vb (1)
283Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
190Public NotOverridable Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
315Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
159Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
172Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (1)
158Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
197Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedRegularMethodBase.vb (1)
140Public NotOverridable Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
168Public Overrides ReadOnly Property MethodKind As MethodKind
161 references to MethodKind
Microsoft.CodeAnalysis.VisualBasic (161)
Analysis\FlowAnalysis\DataFlowPass.vb (9)
1231(Me.MethodSymbol.MethodKind = MethodKind.EventAdd AndAlso DirectCast(Me.MethodSymbol.AssociatedSymbol, EventSymbol).IsWindowsRuntimeEvent) Then 1257Select Case MethodSymbol.MethodKind 1263Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod) 1269Select Case MethodSymbol.MethodKind 1275Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod) 1285Select Case MethodSymbol.MethodKind 1320Select Case method.MethodKind
Analysis\InitializerRewriter.vb (3)
111If handledEvent.hookupMethod.MethodKind = constructorMethod.MethodKind Then 273If methodSymbol.MethodKind = MethodKind.Constructor Then
Binding\Binder_Delegates.vb (2)
1147Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke) 1238If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Binding\Binder_Expressions.vb (1)
1909Return DirectCast(containingMember, MethodSymbol).MethodKind
Binding\Binder_Invocation.vb (2)
58If Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.Constructor Then 716Return methodGroup.Methods(0).MethodKind = MethodKind.Constructor
Binding\Binder_Lookup.vb (1)
1963containingMethod.MethodKind = MethodKind.Constructor AndAlso
Binding\Binder_Statements.vb (8)
347If methodSymbol.MethodKind = MethodKind.Constructor Then 416If Not methodSymbol.IsImplicitlyDeclared AndAlso methodSymbol.MethodKind = MethodKind.Constructor Then 1873If DirectCast(altSymbol.ContainingSymbol, MethodSymbol).MethodKind = MethodKind.LambdaMethod Then 5041Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5052Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5082Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5150Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5162Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod)
Binding\Binder_Utils.vb (2)
862Debug.Assert(Not (container.Kind = SymbolKind.Method AndAlso DirectCast(container, MethodSymbol).MethodKind = MethodKind.DelegateInvoke)) 902If Not methodSymbol.MethodKind = MethodKind.DeclareMethod Then
Binding\Binder_XmlLiterals.vb (1)
1924Return _originalDefinition.MethodKind
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
72If accessor.MethodKind = MethodKind.PropertyGet Then 88Debug.Assert(accessor.MethodKind = MethodKind.PropertySet)
CodeGen\EmitAddress.vb (2)
279Return Me._method.MethodKind = MethodKind.SharedConstructor 281Return Me._method.MethodKind = MethodKind.Constructor AndAlso
Compilation\ClsComplianceChecker.vb (1)
217Dim methodKind As MethodKind = symbol.MethodKind
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (3)
725Return If(method.MethodKind = MethodKind.DeclareMethod, "declare", 726If(method.MethodKind = MethodKind.UserDefinedOperator OrElse method.MethodKind = MethodKind.Conversion, "operator",
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
108Me.IsDeclareMethod = method.MethodKind = MethodKind.DeclareMethod 112Me.TypeParamSupported = Not Me.IsDeclareMethod AndAlso method.MethodKind <> MethodKind.UserDefinedOperator
Compilation\MethodCompiler.vb (9)
137DirectCast(symbol, MethodSymbol).MethodKind = MethodKind.Constructor Then 427Dim sourceTypeBinder As Binder = If(method.MethodKind = MethodKind.Ordinary, Nothing, 695If method.MethodKind = MethodKind.SharedConstructor Then 697ElseIf method.MethodKind = MethodKind.Constructor OrElse method.IsScriptInitializer Then 1481If method.MethodKind = MethodKind.Constructor OrElse method.MethodKind = MethodKind.SharedConstructor Then 1819If method.MethodKind = MethodKind.Constructor Then 1855If referencedMethod IsNot Nothing AndAlso referencedMethod.MethodKind = MethodKind.Constructor Then 1916Debug.Assert(constructor.MethodKind = MethodKind.Constructor)
Compilation\SemanticModel.vb (1)
1862(result.Kind = SymbolKind.Method AndAlso DirectCast(result, MethodSymbol).MethodKind = MethodKind.Constructor) Then
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
86If symbol.MethodKind = MethodKind.Conversion Then
Emit\MethodSymbolAdapter.vb (6)
307Return AdaptedMethodSymbol.MethodKind = MethodKind.Constructor 541Dim result = Me.MethodKind = MethodKind.Constructor OrElse 542Me.MethodKind = MethodKind.SharedConstructor
Emit\NamedTypeSymbolAdapter.vb (1)
488If handledEvent.hookupMethod.MethodKind = MethodKind.SharedConstructor Then
Lowering\Diagnostics\DiagnosticsPass.vb (1)
109If _containingSymbol.MethodKind = MethodKind.LambdaMethod Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
270Debug.Assert(helper.MethodKind = MethodKind.Ordinary OrElse helper.MethodKind = MethodKind.UserDefinedOperator)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
391If method.MethodKind = MethodKind.DelegateInvoke Then
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
404If _currentParent.MethodKind <> MethodKind.LambdaMethod Then 431Loop While parent.MethodKind = MethodKind.LambdaMethod AndAlso parent IsNot container
Lowering\LambdaRewriter\LambdaRewriter.vb (4)
563If _innermostFramePointer.Kind = SymbolKind.Parameter AndAlso _topLevelMethod.MethodKind = MethodKind.Constructor AndAlso 1209(closureKind = ClosureKind.Static AndAlso CurrentMethod.MethodKind <> MethodKind.SharedConstructor AndAlso Not referencedMethod.IsGenericMethod) 1419If node.Method.MethodKind = MethodKind.Constructor AndAlso receiver IsNot Nothing AndAlso receiver.IsInstanceReference Then 1466If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
197If boundCall.Method.MethodKind = MethodKind.PropertyGet AndAlso
Lowering\LocalRewriter\LocalRewriter_Constant.vb (2)
46If currentMethod.MethodKind <> MethodKind.SharedConstructor OrElse 146(currentMethod.MethodKind <> MethodKind.SharedConstructor OrElse
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
978If memberSymbol.MethodKind = MethodKind.Constructor Then 1117If memberSymbol.MethodKind = MethodKind.Constructor Then
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
36Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke)
Semantics\Conversions.vb (1)
4177Debug.Assert(toDelegateInvokeMethod.MethodKind = MethodKind.DelegateInvoke)
Semantics\Operators.vb (2)
2814Debug.Assert(method.MethodKind = MethodKind.Conversion) 2921If method.MethodKind = opKind Then
Semantics\OverloadResolution.vb (2)
971possiblyConstructor.MethodKind = MethodKind.Constructor AndAlso 3756DirectCast(candidate.Candidate.UnderlyingSymbol, MethodSymbol).MethodKind = MethodKind.Constructor AndAlso
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
687Return vbMethod IsNot Nothing AndAlso vbMethod.MethodKind = MethodKind.DeclareMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
32Return Binder.GetAccessorName(m_propertyOrEvent.MetadataName, Me.MethodKind, Me.IsCompilationOutputWinMdObj())
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (3)
232Dim methKind As MethodKind = DirectCast(symbol, MethodSymbol).MethodKind 287Select Case DirectCast(member, MethodSymbol).MethodKind 371Dim kind = method.MethodKind
Symbols\MethodSymbol.vb (16)
32Return Me.ParameterCount = 0 AndAlso Me.MethodKind = MethodKind.Constructor 230Me.MethodKind <> MethodKind.PropertySet AndAlso 323Return DirectCast(Me.AssociatedSymbol, PropertySymbol).GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet)) 426Return IsExtensionMethod AndAlso MethodKind <> MethodKind.ReducedExtension 456Select Case MethodKind 457Case MethodKind.Ordinary, 458MethodKind.Constructor, 459MethodKind.UserDefinedOperator, 460MethodKind.ReducedExtension 496Return Me.MethodKind = MethodKind.Constructor AndAlso Me.ContainingType.IsScriptClass 959Return Me.MethodKind
Symbols\MethodSymbolExtensions.vb (1)
85Select Case method.MethodKind
Symbols\ObsoleteAttributeHelpers.vb (1)
163Dim accessorString = If(accessorSymbol.MethodKind = MethodKind.PropertyGet, "Get", "Set")
Symbols\PropertySymbol.vb (1)
172If If(TryCast(containingMember, MethodSymbol)?.MethodKind <> MethodKind.Constructor, True) Then
Symbols\ReducedExtensionMethodSymbol.vb (2)
49possiblyExtensionMethod.MethodKind <> MethodKind.ReducedExtension) Then 185If Not possiblyExtensionMethod.IsExtensionMethod OrElse possiblyExtensionMethod.MethodKind = MethodKind.ReducedExtension Then
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
440Return _underlyingMethod.MethodKind
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
973Dim targetMethod = New SignatureOnlyMethodSymbol(method.Name, retargetedType, method.MethodKind,
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 (6)
496Select Case DirectCast(sym, MethodSymbol).MethodKind 504Debug.Assert(False, String.Format("Unexpected method kind '{0}'", DirectCast(sym, MethodSymbol).MethodKind)) 626(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse 627DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet))) 688(DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertyGet OrElse 689DirectCast(DirectCast(overridingSym, Symbol), MethodSymbol).MethodKind = MethodKind.PropertySet)))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (11)
962Select Case method.MethodKind 976If syntax Is Nothing AndAlso method.MethodKind = MethodKind.DelegateInvoke Then 2779(DirectCast(sym, MethodSymbol).MethodKind = MethodKind.Constructor OrElse 2780DirectCast(sym, MethodSymbol).MethodKind = MethodKind.SharedConstructor) 2784If method.MethodKind = MethodKind.Constructor AndAlso method.ParameterCount = 0 Then 3454method.MethodKind <> MethodKind.Ordinary AndAlso 3455method.MethodKind <> MethodKind.UserDefinedOperator AndAlso 3456method.MethodKind <> MethodKind.Conversion Then 3618Dim methodMethodKind As MethodKind = method.MethodKind 3746If nextMethod.MethodKind <> method.MethodKind Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
383If DirectCast(member, MethodSymbol).MethodKind <> MethodKind.Ordinary Then 549Debug.Assert(method.MethodKind = MethodKind.Ordinary) 1237Select Case ClonedFrom.MethodKind
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2766If method.MethodKind = MethodKind.Constructor AndAlso method.ParameterCount = 0 Then 2775If method.MethodKind = MethodKind.Constructor AndAlso method.CanBeCalledWithNoParameters() Then
Symbols\Source\SourceParameterSymbol.vb (5)
103If If(TryCast(Me.ContainingSymbol, MethodSymbol)?.MethodKind = MethodKind.DelegateInvoke, False) AndAlso 186If containingSymbol.Kind = SymbolKind.Method AndAlso DirectCast(containingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then 207Select Case DirectCast(containingSymbol, MethodSymbol).MethodKind 452If methodSymbol.MethodKind = MethodKind.DeclareMethod Then 496DirectCast(ContainingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then
Symbols\Source\SynthesizedEventAccessorSymbol.vb (9)
41SourceEvent.GetAccessorImplementations(Me.MethodKind)) 54If Me.MethodKind = MethodKind.EventRemove AndAlso m_propertyOrEvent.IsWindowsRuntimeEvent Then 84useSiteInfo = If(Me.MethodKind = MethodKind.EventRemove, Binder.GetUseSiteInfoForSpecialType(type), Nothing) 104Return Not (Me.MethodKind = MethodKind.EventAdd AndAlso m_propertyOrEvent.IsWindowsRuntimeEvent) 110Return ConstructFieldLikeEventAccessorBody(Me.m_propertyOrEvent, Me.MethodKind = MethodKind.EventAdd, compilation, diagnostics)
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (4)
45Return sourceProperty.GetAccessorImplementations(getter:=(MethodKind = MethodKind.PropertyGet)) 53Return ContainingProperty.GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet))
Symbols\SubstitutedMethodSymbol.vb (1)
285Return OriginalDefinition.MethodKind
Symbols\SubstitutedNamedType.vb (2)
462Select Case memberMethod.MethodKind 466Return If(memberMethod.MethodKind = MethodKind.PropertyGet, propertySymbol.GetMethod, propertySymbol.SetMethod)
Symbols\Symbol_Attributes.vb (1)
74Select Case method.MethodKind
Symbols\Symbol.vb (2)
631Select Case DirectCast(Me, MethodSymbol).MethodKind 671Select Case (DirectCast(Me, MethodSymbol)).MethodKind
Symbols\SymbolExtensions.vb (3)
58Select Case methodSymbol.MethodKind 262Dim kind = method.MethodKind 456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction
Symbols\SynthesizedSymbols\SynthesizedAccessor.vb (1)
27Return Binder.GetAccessorName(m_propertyOrEvent.Name, Me.MethodKind, Me.IsCompilationOutputWinMdObj())
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (2)
106Debug.Assert(propertySetter.MethodKind = MethodKind.PropertySet) 116If method.MethodKind = MethodKind.PropertySet AndAlso
Symbols\WellKnownMembers.vb (1)
469Dim methodKind = method.MethodKind
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
170Return Me.UnderlyingMethod.MethodKind