57 references to GetMethodDefinition
BuildValidator (1)
Util.cs (1)
65var methodDef = reader.GetMethodDefinition((MethodDefinitionHandle)attribute.Constructor);
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
459TypeDefinitionHandle attributeTypeDefHandle = mdReader.GetMethodDefinition((MethodDefinitionHandle)attributeCtor).GetDeclaringType(); 495MethodDefinition methodDef = mdReader.GetMethodDefinition(methoddefHandle);
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
946EntityHandle handle = reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).GetDeclaringType();
Microsoft.CodeAnalysis (10)
MetadataReader\PEModule.cs (10)
3072var methodDef = metadataReader.GetMethodDefinition((MethodDefinitionHandle)attributeCtor); 3299return MetadataReader.GetString(MetadataReader.GetMethodDefinition(methodDef).Name); 3311return metadataReader.GetMethodDefinition(methodDef).Signature; 3339return MetadataReader.GetMethodDefinition(methodDef).Attributes; 3345return MetadataReader.GetMethodDefinition(methodDef).GetDeclaringType(); 3368MethodDefinition methodRow = MetadataReader.GetMethodDefinition(methodDef); 3390return MetadataReader.GetMethodDefinition(methodDef).GetGenericParameters(); 3396return MetadataReader.GetMethodDefinition(methodDef).GetParameters(); 3403var methodImport = MetadataReader.GetMethodDefinition(methodDef).GetImport(); 3963MethodDefinition method = MetadataReader.GetMethodDefinition(methodHandle);
Microsoft.CodeAnalysis.CSharp (1)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
173var methodDef = reader.GetMethodDefinition(methodHandle);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncMainTests.cs (2)
725=> metadataReader.GetString(metadataReader.GetMethodDefinition(handle).Name); 728=> metadataReader.GetMethodDefinition(handle).GetCustomAttributes()
CodeGen\DestructorTests.cs (1)
783Single(handle => peFileReader.GetString(peFileReader.GetMethodDefinition(handle).Name) == WellKnownMemberNames.DestructorName);
Emit\CompilationEmitTests.cs (1)
5083var method = peReader.GetMethodDefinition(m);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
PDB\PDBTests.cs (1)
687var methodDef = mdReader.GetMethodDefinition((MethodDefinitionHandle)MetadataTokens.Handle(peEntryPointToken));
PDB\PortablePdbTests.cs (1)
55var method = mdReader.GetMethodDefinition(methodHandle);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Attributes\AttributeTests_Nullable.cs (1)
4874var method = typeDef.GetMethods().Select(m => reader.GetMethodDefinition(m)).Single(m => reader.StringComparer.Equals(m.Name, "Method"));
Attributes\AttributeTests_WellKnownAttributes.cs (8)
62var method = metadataReader.GetMethodDefinition(methodHandle); 1148var methodDef = metadataReader.GetMethodDefinition(methodHandle); 2719Assert.Equal(MethodImplAttributes.PreserveSig, metadataReader.GetMethodDefinition(methodDefs[0]).ImplAttributes); 3075var methodDef = peReader.GetMethodDefinition(methodHandle); 3149var methodDef = metadataReader.GetMethodDefinition(methodHandle); 3284var row = peReader.GetMethodDefinition(methodHandle); 4736var flags = metadataReader.GetMethodDefinition(methodHandle).Attributes; 10724var method = peReader.GetMethodDefinition(methodHandle);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
EmitMetadataTestBase.cs (1)
150name = metadataReader.GetString(metadataReader.GetMethodDefinition((MethodDefinitionHandle)token).Name);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
MetadataUtilities.cs (1)
484var methodDef = reader.GetMethodDefinition(handle);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (3)
MetadataResolver.cs (3)
69var methodDef = _reader.GetMethodDefinition(methodHandle); 256var methodDef = _reader.GetMethodDefinition(primaryAccessorHandle); 363var methodDef = _reader.GetMethodDefinition(handle);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
FunctionResolverTestBase.cs (1)
42var methodDef = reader.GetMethodDefinition(handle);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
66var methodDef = dllReader.GetMethodDefinition(methodDefHandle);
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
145var methodDefinition = mdReader.GetMethodDefinition(header.EntryPoint);
Microsoft.CodeAnalysis.Test.Utilities (8)
CompilationVerifier.cs (1)
430var methodName = metadataReader.GetString(metadataReader.GetMethodDefinition(method).Name);
Metadata\MetadataReaderUtils.cs (5)
69let method = reader.GetMethodDefinition(handle) 148return reader.MethodDefinitions.Select(handle => reader.GetMethodDefinition(handle).Name).ToArray(); 225parent = reader.GetMethodDefinition((MethodDefinitionHandle)token).GetDeclaringType(); 349MethodDefinition method = reader.GetMethodDefinition((MethodDefinitionHandle)handle); 489var rva = metadataReader.GetMethodDefinition(method).RelativeVirtualAddress;
Metadata\MetadataValidation.cs (2)
38var container = metadataReader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).GetDeclaringType(); 108var methodDef = metadataReader.GetMethodDefinition(methodHandle);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Emit\CompilationEmitTests.vb (1)
2608Dim name = metadataReader.GetString(metadataReader.GetMethodDefinition(methodDef).Name)
Emit\EditAndContinue\EditAndContinueTests.vb (1)
5264Select Case md0.MetadataReader.GetString(md0.MetadataReader.GetMethodDefinition(m).Name)
PDB\PDBTests.vb (1)
155Dim methodDef = mdReader.GetMethodDefinition(CType(MetadataTokens.Handle(peEntryPointToken), MethodDefinitionHandle))
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
433var method = metadataReader.GetMethodDefinition(child);
Microsoft.DotNet.SignTool (1)
src\Configuration.cs (1)
650var typeDef = reader.GetTypeDefinition(reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).GetDeclaringType());
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
99=> CheckNames(readers, methodHandles, (reader, handle) => reader.GetMethodDefinition((MethodDefinitionHandle)handle).Name, handle => handle, expectedNames);
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
402var def = metadataReader.GetMethodDefinition(handle);
System.Diagnostics.FileVersionInfo (2)
System\Diagnostics\FileVersionInfo.Unix.cs (2)
271MethodDefinition md = reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle); 298signature = reader.GetMethodDefinition((MethodDefinitionHandle)ctorHandle).Signature;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\CustomAttributeDecoder.cs (1)
29MethodDefinition definition = _reader.GetMethodDefinition((MethodDefinitionHandle)constructor);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
43public static MethodDefinition GetMethodDefinition(this MethodDefinitionHandle handle, MetadataReader reader) => reader.GetMethodDefinition(handle);