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);
        }
Exemple #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));
            }
        }
Exemple #3
0
 internal EcmaModule(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, IAssemblyDesc containingAssembly, PdbSymbolReader pdbReader)
     : this(context, peReader, metadataReader, containingAssembly)
 {
     PdbReader = pdbReader;
 }
 internal EcmaModule(TypeSystemContext context, PEReader peReader, MetadataReader metadataReader, PdbSymbolReader pdbReader)
     : this(context, peReader, metadataReader)
 {
     PdbReader = pdbReader;
 }
Exemple #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();
 }
Exemple #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));
            }
        }
Exemple #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();
 }