48 references to GetMethod
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (16)
Attributes\AttributeTests_Synthesized.vb (2)
277
Dim baseWrapper = m.ContainingAssembly.GetTypeByMetadataName("D").
GetMethod
("$VB$ClosureStub_GetIntAsync_MyBase")
333
Dim baseWrapper = m.ContainingAssembly.GetTypeByMetadataName("Derived").
GetMethod
("$VB$ClosureStub_GetAsync_MyBase")
Attributes\AttributeTests_WellKnownAttributes.vb (11)
5510
Dim gooMethod = type.
GetMethod
("goo")
5513
Dim mainMethod = type.
GetMethod
("Main")
5541
Dim gooMethod = type.
GetMethod
("goo")
5544
Dim mainMethod = type.
GetMethod
("Main")
5575
Dim gooMethod = type.
GetMethod
("goo")
5578
Dim mainMethod = type.
GetMethod
("Main")
5584
Dim gooMethod = type.
GetMethod
("goo")
5587
Dim mainMethod = type.
GetMethod
("Main")
5618
Dim gooMethod = type.
GetMethod
("goo")
5621
Dim mainMethod = type.
GetMethod
("Main")
7056
Dim attribute = [module].ContainingAssembly.GetTypeByMetadataName("Program").
GetMethod
("Test").Parameters.Single().GetAttributes().Single()
Emit\EmitMetadata.vb (2)
781
Dim ctor = type.
GetMethod
(".ctor")
803
Dim cctor = type.
GetMethod
(".cctor")
Emit\NoPiaEmbedTypes.vb (1)
1179
Dim ctor = DirectCast(test11.
GetMethod
(".ctor"), PEMethodSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (32)
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (4)
306
Assert.Equal(MethodKind.Constructor, x16.
GetMethod
(".ctor").MethodKind)
307
Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x16.
GetMethod
(".ctor").ToTestDisplayString())
323
Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x15.
GetMethod
(".ctor").ToTestDisplayString())
399
Assert.Equal("Sub <generated method>..ctor(TargetObject As System.Object, TargetMethod As System.IntPtr)", x2.
GetMethod
(".ctor").ToTestDisplayString())
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (4)
134
Dim m1 = c.
GetMethod
("M1")
255
Dim m1 = c.
GetMethod
("M1")
385
Dim add = c.
GetMethod
("op_Addition")
433
Dim plus = c.
GetMethod
("op_UnaryPlus")
SymbolsTests\Metadata\PE\LoadCustomModifiers.vb (1)
177
Dim badTypeParameter = compilation.GetTypeByMetadataName("TestRef").
GetMethod
("M").TypeParameters.Single()
SymbolsTests\Metadata\PE\LoadingAttributes.vb (3)
1401
Dim m1Parameters = class1.
GetMethod
("M1").Parameters.Cast(Of PEParameterSymbol)
1530
Dim m1Parameters = class1.
GetMethod
("M1").Parameters.Cast(Of PEParameterSymbol)
1561
Dim m1Parameters = class1.
GetMethod
("M1").Parameters.Cast(Of PEParameterSymbol)
SymbolsTests\Retargeting\RetargetingTests.vb (20)
98
CheckMethods(sourceType.
GetMethod
(".cctor"), retargetingType.
GetMethod
(".cctor"))
99
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
126
CheckMethods(sourceType.
GetMethod
(".cctor"), retargetingType.
GetMethod
(".cctor"))
127
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
966
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
1510
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
1520
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
1530
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
1713
CheckMethods(sourceType.
GetMethod
(".ctor"), retargetingType.
GetMethod
(".ctor"))
3256
Dim m = c2.
GetMethod
("M")
3258
Assert.Equal(c2.Interfaces().Single().
GetMethod
("M"), m.ExplicitInterfaceImplementations.Single())