34 overrides of MethodKind
Microsoft.CodeAnalysis.VisualBasic (30)
Binding\Binder_XmlLiterals.vb (1)
1908Public 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)
186Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
327Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\ReducedExtensionMethodSymbol.vb (1)
345Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
434Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SignatureOnlyMethodSymbol.vb (1)
124Public Overrides ReadOnly Property MethodKind() As MethodKind
Symbols\Source\LambdaSymbol.vb (1)
272Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SourceMethodSymbol.vb (1)
629Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1212Public 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)
157Public Overrides ReadOnly Property MethodKind As MethodKind 202Public 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)
279Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
190Public NotOverridable Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (1)
311Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (1)
156Public 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
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
Symbols\EEMethodSymbol.vb (1)
188Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\PlaceholderMethodSymbol.vb (1)
101Public Overrides ReadOnly Property MethodKind As MethodKind
Symbols\SynthesizedContextMethodSymbol.vb (1)
63Public Overrides ReadOnly Property MethodKind As MethodKind
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MockSymbols.vb (1)
571Public Overrides ReadOnly Property MethodKind As MethodKind
249 references to MethodKind
Microsoft.CodeAnalysis.VisualBasic (145)
Analysis\FlowAnalysis\DataFlowPass.vb (9)
1225(Me.MethodSymbol.MethodKind = MethodKind.EventAdd AndAlso DirectCast(Me.MethodSymbol.AssociatedSymbol, EventSymbol).IsWindowsRuntimeEvent) Then 1251Select Case MethodSymbol.MethodKind 1257Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod) 1263Select Case MethodSymbol.MethodKind 1269Debug.Assert(MethodSymbol.MethodKind = MethodKind.Ordinary OrElse MethodSymbol.MethodKind = MethodKind.LambdaMethod) 1279Select Case MethodSymbol.MethodKind 1314Select 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)
1150Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke) 1241If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Binding\Binder_Expressions.vb (1)
1884Return 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 (7)
347If methodSymbol.MethodKind = MethodKind.Constructor Then 1844If DirectCast(altSymbol.ContainingSymbol, MethodSymbol).MethodKind = MethodKind.LambdaMethod Then 5010Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5021Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5051Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5119Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5131Debug.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)
1910Return _originalDefinition.MethodKind
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
72If accessor.MethodKind = MethodKind.PropertyGet Then 88Debug.Assert(accessor.MethodKind = MethodKind.PropertySet)
BoundTree\BoundCall.vb (1)
80Dim isOperator As Boolean = (Method.MethodKind = MethodKind.UserDefinedOperator)
BoundTree\BoundUserDefinedBinaryOperator.vb (1)
39Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 2)
BoundTree\BoundUserDefinedConversion.vb (1)
62Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.Conversion AndAlso underlyingCall.Method.ParameterCount = 1)
BoundTree\BoundUserDefinedUnaryOperator.vb (1)
33Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 1)
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)
138DirectCast(symbol, MethodSymbol).MethodKind = MethodKind.Constructor Then 417Dim sourceTypeBinder As Binder = If(method.MethodKind = MethodKind.Ordinary, Nothing, 685If method.MethodKind = MethodKind.SharedConstructor Then 687ElseIf method.MethodKind = MethodKind.Constructor OrElse method.IsScriptInitializer Then 1455If method.MethodKind = MethodKind.Constructor OrElse method.MethodKind = MethodKind.SharedConstructor Then 1781If method.MethodKind = MethodKind.Constructor Then 1798If referencedMethod IsNot Nothing AndAlso referencedMethod.MethodKind = MethodKind.Constructor Then 1858Debug.Assert(constructor.MethodKind = MethodKind.Constructor)
Compilation\SemanticModel.vb (1)
1863(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 (3)
298Return AdaptedMethodSymbol.MethodKind = MethodKind.Constructor 529Dim result = Me.MethodKind = MethodKind.Constructor OrElse 530Me.MethodKind = MethodKind.SharedConstructor
Emit\NamedTypeSymbolAdapter.vb (1)
475If handledEvent.hookupMethod.MethodKind = MethodKind.SharedConstructor Then
Emit\NoPia\EmbeddedMethod.vb (1)
55Return UnderlyingMethod.AdaptedMethodSymbol.MethodKind = MethodKind.Constructor
Lowering\Diagnostics\DiagnosticsPass.vb (1)
109If _containingSymbol.MethodKind = MethodKind.LambdaMethod Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
382If method.MethodKind = MethodKind.DelegateInvoke Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
209Debug.Assert(helper.MethodKind = MethodKind.Ordinary OrElse helper.MethodKind = MethodKind.UserDefinedOperator)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
405If _currentParent.MethodKind <> MethodKind.LambdaMethod Then 432Loop While parent.MethodKind = MethodKind.LambdaMethod AndAlso parent IsNot container
Lowering\LambdaRewriter\LambdaRewriter.vb (4)
543If _innermostFramePointer.Kind = SymbolKind.Parameter AndAlso _topLevelMethod.MethodKind = MethodKind.Constructor AndAlso 1161(closureKind = ClosureKind.Static AndAlso CurrentMethod.MethodKind <> MethodKind.SharedConstructor AndAlso Not referencedMethod.IsGenericMethod) 1371If node.Method.MethodKind = MethodKind.Constructor AndAlso receiver IsNot Nothing AndAlso receiver.IsInstanceReference Then 1418If method.MethodKind = MethodKind.DelegateInvoke AndAlso
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
202If 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)
1064If memberSymbol.MethodKind = MethodKind.Constructor Then 1203If memberSymbol.MethodKind = MethodKind.Constructor Then
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
36Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke)
Semantics\Conversions.vb (1)
4172Debug.Assert(toDelegateInvokeMethod.MethodKind = MethodKind.DelegateInvoke)
Semantics\Operators.vb (2)
2814Debug.Assert(method.MethodKind = MethodKind.Conversion) 2921If method.MethodKind = opKind Then
Semantics\OverloadResolution.vb (1)
3395DirectCast(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 (6)
31Return Me.ParameterCount = 0 AndAlso Me.MethodKind = MethodKind.Constructor 229Me.MethodKind <> MethodKind.PropertySet AndAlso 316Return DirectCast(Me.AssociatedSymbol, PropertySymbol).GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet)) 409Return IsExtensionMethod AndAlso MethodKind <> MethodKind.ReducedExtension 449Return Me.MethodKind = MethodKind.Constructor AndAlso Me.ContainingType.IsScriptClass 906Return Me.MethodKind
Symbols\MethodSymbolExtensions.vb (1)
85Select Case method.MethodKind
Symbols\ObsoleteAttributeHelpers.vb (1)
130Dim accessorString = If(accessorSymbol.MethodKind = MethodKind.PropertyGet, "Get", "Set")
Symbols\PropertySymbol.vb (1)
174If If(TryCast(containingMember, MethodSymbol)?.MethodKind <> MethodKind.Constructor, True) Then
Symbols\ReducedExtensionMethodSymbol.vb (2)
42possiblyExtensionMethod.MethodKind <> MethodKind.ReducedExtension) Then 177If Not possiblyExtensionMethod.IsExtensionMethod OrElse possiblyExtensionMethod.MethodKind = MethodKind.ReducedExtension Then
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
436Return _underlyingMethod.MethodKind
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
983Dim 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)
969Select Case method.MethodKind 983If syntax Is Nothing AndAlso method.MethodKind = MethodKind.DelegateInvoke Then 2767(DirectCast(sym, MethodSymbol).MethodKind = MethodKind.Constructor OrElse 2768DirectCast(sym, MethodSymbol).MethodKind = MethodKind.SharedConstructor) 2772If method.MethodKind = MethodKind.Constructor AndAlso method.ParameterCount = 0 Then 3442method.MethodKind <> MethodKind.Ordinary AndAlso 3443method.MethodKind <> MethodKind.UserDefinedOperator AndAlso 3444method.MethodKind <> MethodKind.Conversion Then 3606Dim methodMethodKind As MethodKind = method.MethodKind 3734If nextMethod.MethodKind <> method.MethodKind Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2640If method.MethodKind = MethodKind.Constructor AndAlso method.ParameterCount = 0 Then 2649If method.MethodKind = MethodKind.Constructor AndAlso method.CanBeCalledWithNoParameters() Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
381If DirectCast(member, MethodSymbol).MethodKind <> MethodKind.Ordinary Then 547Debug.Assert(method.MethodKind = MethodKind.Ordinary) 1214Select Case ClonedFrom.MethodKind
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 (5)
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 (2)
45Return sourceProperty.GetAccessorImplementations(getter:=(MethodKind = MethodKind.PropertyGet)) 53Return ContainingProperty.GetAccessorOverride(getter:=(MethodKind = MethodKind.PropertyGet))
Symbols\SubstitutedMethodSymbol.vb (1)
281Return OriginalDefinition.MethodKind
Symbols\SubstitutedNamedType.vb (2)
456Select Case memberMethod.MethodKind 460Return If(memberMethod.MethodKind = MethodKind.PropertyGet, propertySymbol.GetMethod, propertySymbol.SetMethod)
Symbols\Symbol.vb (2)
539Select Case DirectCast(Me, MethodSymbol).MethodKind 579Select Case (DirectCast(Me, MethodSymbol)).MethodKind
Symbols\Symbol_Attributes.vb (1)
73Select Case method.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
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Attributes\AttributeTests_Tuples.vb (1)
254If DirectCast(s, MethodSymbol).MethodKind = MethodKind.EventRaise Then
Emit\EmitMetadata.vb (2)
785Assert.Equal(MethodKind.Constructor, ctor.MethodKind) 806Assert.Equal(MethodKind.SharedConstructor, cctor.MethodKind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
HoistedMeTests.vb (1)
1120CheckLambdaOverloading(source, Function(m) m.MethodKind = MethodKind.Constructor)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (21)
DeclaringSyntaxNodeTests.vb (2)
134Assert.Equal(MethodKind.LambdaMethod, sym.MethodKind) 514If memb.Kind = SymbolKind.Method AndAlso (DirectCast(memb, MethodSymbol)).MethodKind = MethodKind.Constructor Then
ExtensionMethods\SemanticModelTests.vb (3)
61Assert.Equal(MethodKind.ReducedExtension, method.MethodKind) 65Assert.Equal(MethodKind.Ordinary, method.CallsiteReducedFromMethod.MethodKind) 70Assert.Equal(MethodKind.ReducedExtension, reducedMethod.MethodKind)
Semantics\AnonymousTypesTests.vb (3)
1501Assert.Equal(MethodKind.LambdaMethod, lambda2.MethodKind) 1546Assert.Equal(MethodKind.LambdaMethod, lambda2.MethodKind) 1591Assert.Equal(MethodKind.LambdaMethod, lambda2.MethodKind)
Semantics\BinaryOperators.vb (2)
1109If method.MethodKind = MethodKind.UserDefinedOperator AndAlso 1225Assert.Equal(MethodKind.BuiltinOperator, symbol1.MethodKind)
Semantics\GetExtendedSemanticInfoTests.vb (4)
4359Assert.Equal(MethodKind.Constructor, method.MethodKind) 4398Assert.Equal(MethodKind.Constructor, method.MethodKind) 4434Assert.Equal(MethodKind.Constructor, method.MethodKind) 4473Assert.Equal(MethodKind.Constructor, method.MethodKind)
Semantics\OptionalArgumentTests.vb (5)
2202Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2313Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2402Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2524Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray() 2685Dim methods = [module].GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMembers().OfType(Of MethodSymbol)().Where(Function(m) m.MethodKind = MethodKind.Ordinary).ToArray()
Semantics\UnaryOperators.vb (1)
756Assert.Equal(MethodKind.BuiltinOperator, symbol1.MethodKind)
Semantics\UsingStatementTest.vb (1)
345If (DirectCast(type.Symbol, MethodSymbol).MethodKind = MethodKind.Constructor) Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (79)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (4)
306Assert.Equal(MethodKind.Constructor, x16.GetMethod(".ctor").MethodKind) 308Assert.Equal(MethodKind.DelegateInvoke, x16.GetMember(Of MethodSymbol)("Invoke").MethodKind) 310Assert.Equal(MethodKind.Ordinary, x16.GetMember(Of MethodSymbol)("BeginInvoke").MethodKind) 312Assert.Equal(MethodKind.Ordinary, x16.GetMember(Of MethodSymbol)("EndInvoke").MethodKind)
SymbolsTests\CheckedUserDefinedOperatorsTests.vb (12)
179If m.MethodKind <> MethodKind.Constructor Then 180Assert.Equal(MethodKind.Ordinary, m.MethodKind) 254If m.MethodKind <> MethodKind.Constructor Then 255Assert.Equal(MethodKind.UserDefinedOperator, m.MethodKind) 366If m.MethodKind <> MethodKind.Constructor Then 367Assert.Equal(MethodKind.Ordinary, m.MethodKind) 437If m.MethodKind <> MethodKind.Constructor Then 438Assert.Equal(MethodKind.UserDefinedOperator, m.MethodKind) 545If m.MethodKind <> MethodKind.Constructor Then 546Assert.Equal(MethodKind.Ordinary, m.MethodKind) 612If m.MethodKind <> MethodKind.Constructor Then 613Assert.Equal(MethodKind.Conversion, m.MethodKind)
SymbolsTests\Metadata\MetadataMemberTests.vb (4)
168Assert.Equal(MethodKind.Constructor, ctor.MethodKind) 214Assert.Equal(MethodKind.Ordinary, member1.MethodKind) 732If m.MethodKind = MethodKind.Constructor Then 737Assert.NotEqual(MethodKind.Ordinary, m.MethodKind)
SymbolsTests\Metadata\PE\LoadingEvents.vb (2)
105Select Case accessor.MethodKind 113Assert.[False](True, String.Format("Accessor {0} has unexpected MethodKind {1}", accessor, accessor.MethodKind))
SymbolsTests\Metadata\PE\LoadingMethods.vb (15)
393Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 422Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 456Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 488Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 515Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 541Assert.Equal(MethodKind.Ordinary, classMethod.MethodKind) 545Assert.Equal(MethodKind.Ordinary, classGenericMethod.MethodKind) 772Assert.Equal(If(m.Name = ".cctor", MethodKind.SharedConstructor, MethodKind.Constructor), DirectCast(m, MethodSymbol).MethodKind) 776Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 780Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 784Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 788Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 792Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 796Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 800Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind)
SymbolsTests\Metadata\PE\LoadingOperators.vb (23)
595Assert.Equal(baseLine(i).Kind, method.MethodKind) 1191Assert.Equal(baseLine(i).Kind, method.MethodKind) 1375Assert.Equal(MethodKind.Ordinary, method.MethodKind) 1953Assert.Equal(baseLine(i).Kind, method.MethodKind) 2087Assert.Equal(baseLine(i).Kind, method.MethodKind) 2192Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2195Assert.Equal(MethodKind.Ordinary, DirectCast(m, MethodSymbol).MethodKind) 2292Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2293Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2294Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2390Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2391Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2392Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2470Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2471Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind) 2549Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers("op_OnesComplement").Single(), MethodSymbol).MethodKind) 2550Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers("op_LogicalNot").Single(), MethodSymbol).MethodKind) 2628Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2629Assert.Equal(MethodKind.Ordinary, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("OP_ONESCOMPLEMENT")).Single(), MethodSymbol).MethodKind) 2692Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(a11.GetMembers().Where(Function(m) m.Name.Equals("op_OnesComplement")).Single(), MethodSymbol).MethodKind) 2782Assert.Equal(MethodKind.UserDefinedOperator, DirectCast(m, MethodSymbol).MethodKind) 2804Assert.Equal(MethodKind.Conversion, op_Implicit.MethodKind) 2805Assert.Equal(MethodKind.Conversion, op_Explicit.MethodKind)
SymbolsTests\Source\DelegateTests.vb (1)
248Assert.Equal(MethodKind.DelegateInvoke, invoke.MethodKind)
SymbolsTests\Source\EventTests.vb (2)
1732Assert.Equal(MethodKind.EventAdd, DirectCast(mems(2), MethodSymbol).MethodKind) 1736Assert.Equal(MethodKind.EventRemove, DirectCast(mems(4), MethodSymbol).MethodKind)
SymbolsTests\Source\ImplementsTests.vb (1)
3813Single(Function(m) m.ExplicitInterfaceImplementations.Single().MethodKind = MethodKind.EventAdd)
SymbolsTests\Source\MethodTests.vb (9)
66Assert.Equal(MethodKind.Constructor, ctor.MethodKind) 85Assert.Equal(MethodKind.Ordinary, m1.MethodKind) 193Assert.Equal(MethodKind.Ordinary, m1.MethodKind) 242Assert.Equal(MethodKind.Constructor, m1.MethodKind) 261Assert.Equal(MethodKind.Constructor, m2.MethodKind) 315Assert.Equal(MethodKind.SharedConstructor, m1.MethodKind) 335Assert.Equal(MethodKind.SharedConstructor, m2.MethodKind) 388Assert.Equal(MethodKind.Constructor, m1.MethodKind) 413Assert.Equal(MethodKind.Constructor, m2.MethodKind)
SymbolsTests\Source\OperatorsTests.vb (3)
187Assert.Equal(baseLine(i - 1).Kind, op.MethodKind) 385Assert.Equal(baseLine(i - 1).Kind, op.MethodKind) 544Assert.Equal(baseLine(i - 1).Kind, op.MethodKind)
SymbolsTests\Source\PropertyTests.vb (3)
8110Dim isAccessor = accessor.MethodKind = MethodKind.PropertyGet OrElse accessor.MethodKind = MethodKind.PropertySet 8168Assert.Equal(accessor.MethodKind, methodKind)