public static RubyMethodDebugInfo GetOrCreate(string/*!*/ methodName) { lock (_Infos) { RubyMethodDebugInfo info; if (!_Infos.TryGetValue(methodName, out info)) { info = new RubyMethodDebugInfo(); _Infos.Add(methodName, info); } return info; } }
public override void MarkSequencePoint(LambdaExpression method, int ilOffset, DebugInfoExpression node) { RubyMethodDebugInfo.GetOrCreate(method.Name).AddMapping(ilOffset, node.StartLine); }