public void BuildDebugLocInfoMap(ObjectNode node) { if (!HasModuleDebugInfo()) { return; } _offsetToDebugLoc.Clear(); INodeWithDebugInfo debugNode = node as INodeWithDebugInfo; if (debugNode != null) { DebugLocInfo[] locs = debugNode.DebugLocInfos; if (locs != null) { foreach (var loc in locs) { _offsetToDebugLoc.Add(loc.NativeOffset, loc); } } } }
public void BuildDebugLocInfoMap(ObjectNode node) { if (!HasModuleDebugInfo()) { return; } _offsetToDebugLoc.Clear(); INodeWithDebugInfo debugNode = node as INodeWithDebugInfo; if (debugNode != null) { DebugLocInfo[] locs = debugNode.DebugLocInfos; if (locs != null) { foreach (var loc in locs) { Debug.Assert(!_offsetToDebugLoc.ContainsKey(loc.NativeOffset)); _offsetToDebugLoc[loc.NativeOffset] = loc; } } } }