} // no more waiting for swd, we're done public virtual void addSource(int i, DModule m) { m_source.put(i, m); }
public DStackContext(int module, int line, DModule f, int thisId, String functionSignature, int depth) { m_source = f; m_module = module; m_line = line; // the passed-in 'thisId' seems to always be equal to one, which does more harm than good m_this = null; m_functionSignature = functionSignature; m_depth = depth; m_args = new LinkedHashMap(); // preserves order m_locals = new LinkedHashMap(); // preserves order m_scopeChain = new System.Collections.ArrayList(); m_populated = false; m_location = new DLocation(m_source, line); }
internal virtual int compareTo(DModule other) { return String.CompareOrdinal(Name, other.Name); }
/// <summary> Record a new source file.</summary> /// <param name="name">filename in "basepath;package;filename" format /// </param> /// <param name="swfIndex">the index of the SWF with which this source is associated, /// or -1 is we don't know /// </param> /// <returns> true if our list of source files was modified, or false if we /// already knew about that particular source file. /// </returns> private bool putSource(int swfIndex, int moduleId, int bitmap, String name, String text) { lock (m_source) { // if we haven't already recorded this script then do so. if (!m_source.contains(moduleId)) { DModule s = new DModule(this, moduleId, bitmap, name, text); // put source in our large pool m_source.put(moduleId, s); // put the source in the currently active swf DSwfInfo swf; if (swfIndex == - 1) // caller didn't tell us what swf thi is for swf = ActiveSwfInfo; // ... so guess else swf = getOrCreateSwfInfo(swfIndex); swf.addSource(moduleId, s); return true; } return false; } }
public FunctionPositionComparator(DModule module) { m_Module = module; }