示例#1
0
        public CopiedMethodILNode(EcmaMethod method)
        {
            Debug.Assert(!method.IsAbstract);

            _method = (EcmaMethod)method.GetTypicalMethodDefinition();
        }
示例#2
0
 private ModuleToken GetModuleToken(NodeFactory factory)
 {
     if (factory.CompilationModuleGroup.VersionsWithMethodBody(_method))
     {
         return(new ModuleToken(_method.Module, _method.Handle));
     }
     else
     {
         return(new ModuleToken(factory.ManifestMetadataTable._mutableModule, factory.ManifestMetadataTable._mutableModule.TryGetEntityHandle(_method.GetTypicalMethodDefinition()).Value));
     }
 }