public unsafe PdbInfo(IO.FileStream inputStream, Metadata.Reader reader) { this.reader = reader; this.pdbFunctionMap = PdbFile.LoadFunctionMap(inputStream, out tokenToSourceMapping, out sourceServerData, reader); //inputStream.Seek(0L, IO.SeekOrigin.Begin); //this.remapTable = PdbFile.LoadRemapTable(inputStream); }
internal InstructionParser(Reader/*!*/ reader, Method/*!*/ method, int methodIndex, int RVA) : base(reader, method, methodIndex, RVA) { this.ehMap = new TrivialHashtable(); }
internal BodyParser(Reader/*!*/ reader, Method/*!*/ method, int methodIndex, int RVA) : base(reader, method, methodIndex, RVA) { //^ base; }
internal ILParser(Reader/*!*/ reader, Method/*!*/ method, int methodIndex, int RVA) { this.reader = reader; this.bodyReader = reader.tables.GetNewCursor(); this.method = method; this.method.LocalList = this.locals; this.methodIndex = methodIndex; this.RVA = RVA; //^ base(); }
public static AssemblyNode GetAssembly(AssemblyReference assemblyReference, IDictionary cache, bool doNotLockFile, bool getDebugInfo, bool useGlobalCache, bool preserveShortBranches) { if(assemblyReference == null) return null; if(CoreSystemTypes.SystemAssembly == null) Debug.Fail(""); Reader reader = new Reader(cache, doNotLockFile, getDebugInfo, useGlobalCache, preserveShortBranches); return assemblyReference.Assembly = reader.GetAssemblyFromReference(assemblyReference); }
public virtual void Dispose() { if(this.reader != null) this.reader.Dispose(); this.reader = null; ModuleReferenceList mrefs = this.moduleReferences; for(int i = 0, n = mrefs == null ? 0 : mrefs.Count; i < n; i++) { //^ assert mrefs != null; ModuleReference mr = mrefs[i]; if(mr != null && mr.Module == null) continue; mr.Module.Dispose(); } this.moduleReferences = null; GC.SuppressFinalize(this); }