public void MaybeEmitDebugInfo(ILGen ilg, IPersistentMap spanMap)
{
if ( _docWriter != null && spanMap != null )
{
int startLine;
int startCol;
int finishLine;
int finishCol;
if (Compiler.GetLocations(spanMap, out startLine, out startCol, out finishLine, out finishCol))
{
try
{
ilg.MarkSequencePoint(_docWriter, startLine, startCol, finishLine, finishCol);
}
catch (NotSupportedException)
{
// probably a dynamic ilgen
}
}
}
}