Example #1
0
        public static EcmaModule Create(TypeSystemContext context, PEReader peReader, PdbSymbolReader pdbReader)
        {
            MetadataReader metadataReader = CreateMetadataReader(context, peReader);

            if (metadataReader.IsAssembly)
                return new EcmaAssembly(context, peReader, metadataReader, pdbReader);
            else
                return new EcmaModule(context, peReader, metadataReader, pdbReader);
        }
Example #2
0
        public static EcmaModule Create(TypeSystemContext context, PEReader peReader, IAssemblyDesc containingAssembly, PdbSymbolReader pdbReader)
        {
            MetadataReader metadataReader = CreateMetadataReader(context, peReader);

            if (containingAssembly == null)
            {
                return(new EcmaAssembly(context, peReader, metadataReader, pdbReader));
            }
            else
            {
                return(new EcmaModule(context, peReader, metadataReader, containingAssembly, pdbReader));
            }
        }
Example #3
0
 internal EcmaModule(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, IAssemblyDesc containingAssembly, PdbSymbolReader pdbReader)
     : this(context, peReader, metadataReader, containingAssembly)
 {
     PdbReader = pdbReader;
 }
Example #4
0
 internal EcmaModule(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, PdbSymbolReader pdbReader)
     : this(context, peReader, metadataReader)
 {
     PdbReader = pdbReader;
 }
Example #5
0
 internal EcmaAssembly(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, PdbSymbolReader pdbReader, IModuleResolver customModuleResolver)
     : base(context, peReader, metadataReader, containingAssembly: null, pdbReader, customModuleResolver)
 {
     _assemblyDefinition = metadataReader.GetAssemblyDefinition();
 }
Example #6
0
        public static EcmaModule Create(TypeSystemContext context, PEReader peReader, PdbSymbolReader pdbReader)
        {
            MetadataReader metadataReader = CreateMetadataReader(context, peReader);

            if (metadataReader.IsAssembly)
            {
                return(new EcmaAssembly(context, peReader, metadataReader, pdbReader));
            }
            else
            {
                return(new EcmaModule(context, peReader, metadataReader, pdbReader));
            }
        }
Example #7
0
 internal EcmaModule(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, PdbSymbolReader pdbReader)
     : this(context, peReader, metadataReader)
 {
     PdbReader = pdbReader;
 }
 internal EcmaAssembly(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, PdbSymbolReader pdbReader)
     : base(context, peReader, metadataReader, pdbReader)
 {
     _assemblyDefinition = metadataReader.GetAssemblyDefinition();
 }