13 overrides of GetMethod
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_XmlLiterals.vb (1)
1597
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
82
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
47
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (1)
83
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
289
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
103
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\SignatureOnlyPropertySymbol.vb (1)
148
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1729
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Source\SourcePropertySymbol.vb (1)
670
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
61
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\SubstitutedPropertySymbol.vb (1)
118
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
112
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
Symbols\Tuples\TuplePropertySymbol.vb (1)
62
Public Overrides ReadOnly Property
GetMethod
As MethodSymbol
156 references to GetMethod
Microsoft.CodeAnalysis.VisualBasic (44)
Binding\Binder_Invocation.vb (1)
997
If [property].
GetMethod
Is ContainingMember Then
Binding\Binder_XmlLiterals.vb (1)
1599
Return ReduceAccessorIfAny(_originalDefinition.
GetMethod
)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (1)
49
Dim baseGetSym = propertySymbol.
GetMethod
.OverriddenMethod
Emit\NoPia\EmbeddedTypesManager.vb (1)
439
Dim getMethod = [property].AdaptedPropertySymbol.
GetMethod
Emit\PropertySymbolAdapter.vb (2)
23
Dim getter = AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter()
44
Return AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
688
DirectCast(Me._factory.SpecialMember(SpecialMember.System_Array__LongLength), PropertySymbol).
GetMethod
,
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
195
currentManagedThreadIdMethod = currentManagedThreadIdProperty.
GetMethod
()
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
150
Dim getter = propertyDef.
GetMethod
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
128
Dim invocationListAccessor As MethodSymbol = invocationListProperty.
GetMethod
Lowering\StateMachineRewriter\StateMachineRewriter.vb (3)
401
Dim getter = symbol.
GetMethod
454
Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceProperty), PropertySymbol).
GetMethod
460
Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceMethod), PropertySymbol).
GetMethod
.AsMember(interfaceType)
Lowering\SyntheticBoundNodeFactory.vb (4)
199
Return [Call](Nothing, propertySym.
GetMethod
())
207
Return [Call](receiver, propertySym.
GetMethod
())
216
Return [Call](receiver, propertySym.
GetMethod
())
223
Return [Call](Nothing, propertySym.
GetMethod
())
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
258
If [property].
GetMethod
IsNot Nothing Then
259
AddReferencedSymbolWithDependents([property].
GetMethod
, allSymbols)
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
362
Dim getMethod As MethodSymbol = prop.
GetMethod
420
Dim getMethod = [property].
GetMethod
Symbols\PropertySymbol.vb (4)
131
Return (Me.
GetMethod
Is Nothing)
240
Dim getMethod = [property].
GetMethod
333
Return If(getter, overriddenProp.
GetMethod
, overriddenProp.SetMethod)
546
Return Me.
GetMethod
Symbols\PropertySymbolExtensions.vb (1)
46
Dim accessor = [property].
GetMethod
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
105
Return If(_underlyingProperty.
GetMethod
Is Nothing, Nothing, RetargetingTranslator.Retarget(_underlyingProperty.
GetMethod
))
Symbols\Source\ImplementsHelper.vb (4)
367
Dim accessorToCheck As MethodSymbol = [property].
GetMethod
473
Dim implementedPropertyGetMethod As MethodSymbol = implementedProperty.
GetMethod
485
If (implementedPropertyGetMethod IsNot Nothing AndAlso implementingProperty.
GetMethod
Is Nothing) OrElse
494
implementingProperty.
GetMethod
IsNot Nothing AndAlso implementingProperty.SetMethod IsNot Nothing Then
Symbols\Source\OverrideHidingHelper.vb (2)
923
CheckOverridePropertyAccessor(overridingProperty.
GetMethod
, overriddenProperty.
GetMethod
, diagnostics)
Symbols\Source\SourceMemberMethodSymbol.vb (2)
981
If prop.
GetMethod
IsNot Nothing AndAlso
982
prop.
GetMethod
.ReturnType.IsClassOrInterfaceType AndAlso
Symbols\Source\SourceMethodSymbol.vb (1)
1068
Dim accessor = If(syntax.Kind = SyntaxKind.GetAccessorStatement, propertySymbol.
GetMethod
, propertySymbol.SetMethod)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
398
Dim getter As MethodSymbol = prop.
GetMethod
613
If LexicalOrderSymbolComparer.Instance.Compare(prop.
GetMethod
, prop.SetMethod) <= 0 Then
Symbols\Source\SourcePropertySymbol.vb (1)
900
Dim accessor = If(getter, implementedProp.
GetMethod
, implementedProp.SetMethod)
Symbols\SubstitutedNamedType.vb (3)
318
Dim getMethod = If(memberProperty.
GetMethod
Is Nothing, Nothing, SubstituteTypeParametersForMemberMethod(memberProperty.
GetMethod
))
370
Dim getMethod = GetMethodSubstitute(methodSubstitutions, memberProperty.
GetMethod
)
Symbols\Tuples\TuplePropertySymbol.vb (1)
64
Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingProperty.
GetMethod
)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
EditAndContinue\TopLevelEditingTests.vb (3)
3786
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P1").
GetMethod
),
4025
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P").
GetMethod
),
8135
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P").
GetMethod
),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (22)
Attributes\AttributeTests.vb (14)
523
Assert.Equal(1, auto.
GetMethod
.GetReturnTypeAttributes().Length)
528
Assert.Equal(1, autoRO.
GetMethod
.GetReturnTypeAttributes().Length)
532
Assert.Null(autoWO.
GetMethod
)
538
Assert.Equal(1, auto.
GetMethod
.GetReturnTypeAttributes().Length)
544
Assert.Equal(1, roa.
GetMethod
.GetReturnTypeAttributes().Length)
548
Assert.Null(woa.
GetMethod
)
553
Assert.Equal(1, a.
GetMethod
.GetReturnTypeAttributes().Length)
558
Assert.Equal(1, ab.
GetMethod
.GetReturnTypeAttributes().Length)
559
Assert.Equal("A", ab.
GetMethod
.GetReturnTypeAttributes()(0).AttributeClass.Name)
600
Assert.Equal(UnmanagedType.I4, auto.
GetMethod
.ReturnTypeMarshallingInformation.UnmanagedType)
601
Assert.Equal(1, auto.
GetMethod
.GetReturnTypeAttributes().Length)
655
attrs = prop.
GetMethod
.GetAttributes()
1015
attrs = p1.
GetMethod
.GetReturnTypeAttributes()
1020
attrs = p2.
GetMethod
.GetReturnTypeAttributes()
Attributes\AttributeTests_Conditional.vb (3)
174
Dim propGetMethod = propP1.
GetMethod
184
propGetMethod = propP2.
GetMethod
190
propGetMethod = propP3.
GetMethod
Attributes\AttributeTests_Synthesized.vb (3)
166
Dim attrs = p.
GetMethod
.GetAttributes()
172
attrs = q.
GetMethod
.GetAttributes()
178
attrs = we.
GetMethod
.GetAttributes()
Emit\EditAndContinue\EditAndContinueTests.vb (2)
1960
Dim getter0 = compilation0.GetMember(Of PropertySymbol)("Module1.P").
GetMethod
1961
Dim getter1 = compilation1.GetMember(Of PropertySymbol)("Module1.P").
GetMethod
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (21)
Semantics\GetSemanticInfoTests.vb (2)
3789
Assert.Null([property].
GetMethod
)
3799
Assert.Null([property].
GetMethod
)
Semantics\InitOnlyMemberTests.vb (16)
2127
Assert.Empty(p.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2215
Assert.Empty(p.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2310
Assert.Empty(p.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2404
Assert.NotEmpty(p.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2618
Assert.NotEmpty(cl2p1.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2623
Assert.NotEmpty(cl2p2.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2628
Assert.Empty(cl3p1.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2633
Assert.Empty(cl3p2.
GetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2946
Assert.Empty(p.
GetMethod
.ExplicitInterfaceImplementations.Single().ReturnTypeCustomModifiers)
3029
Assert.NotEmpty(p.
GetMethod
.ExplicitInterfaceImplementations.Single().ReturnTypeCustomModifiers)
4781
Dim pGet = p.
GetMethod
4869
Dim pGet = p.
GetMethod
4962
Dim pGet = p.
GetMethod
5057
Dim pGet = p.
GetMethod
5255
Assert.False(p.
GetMethod
.IsInitOnly)
5263
Assert.False(p.
GetMethod
.IsInitOnly)
Semantics\IteratorTests.vb (2)
1018
Assert.True([property].
GetMethod
.IsIterator)
1021
Assert.True([property].
GetMethod
.IsIterator)
Semantics\XmlLiteralSemanticModelTests.vb (1)
423
Assert.Equal(0, symbol.
GetMethod
.Parameters().Length)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (66)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (1)
669
Dim getter = prop.
GetMethod
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (1)
1948
Dim getter As MethodSymbol = [property].
GetMethod
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (4)
206
Assert.NotNull(prop.
GetMethod
.GetUseSiteErrorInfo())
207
Assert.True(prop.
GetMethod
.HasUnsupportedMetadata)
336
Assert.NotNull(prop.
GetMethod
.GetUseSiteErrorInfo())
337
Assert.True(prop.
GetMethod
.HasUnsupportedMetadata)
SymbolsTests\CustomModifiersTests.vb (1)
1051
Assert.Equal("Function CL3.get_Test() As System.Int32 modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsLong)", test.
GetMethod
.ToTestDisplayString())
SymbolsTests\DefaultInterfaceImplementationTests.vb (4)
4250
Dim p1Get = p1.
GetMethod
4311
Dim p1Get = p1.
GetMethod
4378
Dim p1Get = p1.
GetMethod
4441
Dim p1Get = p1.
GetMethod
SymbolsTests\Metadata\MetadataMemberTests.vb (2)
763
Assert.Null(propWithoutGetter.
GetMethod
)
768
Assert.NotNull(propWithoutSetter.
GetMethod
)
SymbolsTests\Metadata\PE\LoadingAttributes.vb (2)
454
Dim returnAttributes = property1.
GetMethod
.GetReturnTypeAttributes()
1206
Assert.Equal(3, prop.
GetMethod
.GetAttributes().Length)
SymbolsTests\Metadata\PE\VisualBasicCompilerFeatureRequiredTests.vb (2)
191
Assert.True(onPropertyGetterProperty.
GetMethod
.HasUnsupportedMetadata)
198
Assert.False(onPropertySetterProperty.
GetMethod
.HasUnsupportedMetadata)
SymbolsTests\MyBaseMyClassSemanticsTests.vb (1)
97
Dim getter As MethodSymbol = [property].
GetMethod
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
206
Dim testMethod As MethodSymbol = testProperty.
GetMethod
SymbolsTests\Source\ClsComplianceTests.vb (1)
1546
Dim accessor = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P").
GetMethod
SymbolsTests\Source\ImplementsTests.vb (13)
2221
Dim ifooTypeStyleWithStringGetter = ifooTypeStyleWithString.
GetMethod
2223
Dim ifooTypeStyleWithIntGetter = ifooTypeStyleWithInt.
GetMethod
2226
Dim fooXGetter = fooX.
GetMethod
2230
Dim fooYGetter = fooY.
GetMethod
2233
Dim fooStyleGetter = fooStyle.
GetMethod
2236
Dim barStyleGetter = barStyle.
GetMethod
2402
Dim ifooTypeStyleWithStringGetter = ifooTypeStyleWithString.
GetMethod
2404
Dim ifooTypeStyleWithIntGetter = ifooTypeStyleWithInt.
GetMethod
2406
Dim ifooTypeStyleWithLongGetter = ifooTypeStyleWithLong.
GetMethod
2409
Dim barXGetter = barX.
GetMethod
2411
Dim fooYGetter = fooY.
GetMethod
2413
Dim fooStyleGetter = fooStyle.
GetMethod
2415
Dim barStyleGetter = barStyle.
GetMethod
SymbolsTests\Source\PropertyTests.vb (19)
721
Dim accessor = [property].
GetMethod
785
Assert.Equal(SpecialType.System_Int32, [property].
GetMethod
.Parameters(0).Type.SpecialType)
836
Dim P1s = type.GetMembers("P1").OfType(Of PropertySymbol)().OrderBy(Function(symb) symb.
GetMethod
.Parameters.Length)
837
Dim P2s = type.GetMembers("P2").OfType(Of PropertySymbol)().OrderBy(Function(symb) symb.
GetMethod
.ReturnType.Name)
1422
Assert.NotNull(defaultCapacityProperty.
GetMethod
)
5975
Assert.True(p.
GetMethod
.IsImplicitlyDeclared)
5978
Assert.True(p.
GetMethod
.IsImplicitlyDeclared)
5981
Assert.True(q.
GetMethod
.IsImplicitlyDeclared)
6011
Assert.Equal(1, p.
GetMethod
.Parameters.Length)
6012
Dim p11 = p.
GetMethod
.Parameters(0)
8097
VerifyMethodAndAccessorSame(type, [property], [property].
GetMethod
)
8120
CheckPropertyAccessorAccessibility([property], propertyAccessibility, [property].
GetMethod
, getterAccessibility)
8153
Dim getterAttribute = [property].
GetMethod
.GetAttributes().Single()
8183
Dim interfacePropertyGetter = interfaceProperty.
GetMethod
8190
Dim classPropertyGetter = classProperty.
GetMethod
8243
If [property].
GetMethod
IsNot Nothing Then
8244
Assert.Equal([property].
GetMethod
.Parameters.Length, expectedCount)
8255
If [property].
GetMethod
IsNot Nothing Then
8256
Assert.True((From param In [property].
GetMethod
.Parameters Select param.Type).SequenceEqual(expectedTypes))
SymbolsTests\StaticAbstractMembersInInterfacesTests.vb (8)
826
Assert.False(i1P1.
GetMethod
.IsShared)
856
Assert.False(i1P1.
GetMethod
.IsShared)
895
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
900
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
944
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
949
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
993
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
998
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
GetMethod
))
SymbolsTests\SymbolErrorTests.vb (6)
10590
Assert.False(baseP1.
GetMethod
.IsOverridable)
10593
Dim p1Get = p1.
GetMethod
10597
Assert.Same(baseP1.
GetMethod
, p1Get.OverriddenMethod)
10650
Assert.True(baseP1.
GetMethod
.IsOverridable)
10653
Dim p1Get = p1.
GetMethod
10657
Assert.Same(baseP1.
GetMethod
, p1Get.OverriddenMethod)