private void MarkSequencePoint(ISourceLineInfo sourceInfo)
{
Debug.Assert(_module.EmitSymbols);
// Do not emit adjacent 0xfeefee sequence points, as that slows down stepping in the debugger
if (sourceInfo.IsNoSource && _lastSourceInfo != null && _lastSourceInfo.IsNoSource)
{
return;
}
string sourceFile = GetFileName(sourceInfo);
#if DEBUG
if (XmlILTrace.IsEnabled) {
if (sourceInfo.IsNoSource)
this.writerDump.WriteLine("//[no source]");
else {
if (sourceFile != this.sourceFile) {
this.sourceFile = sourceFile;
this.writerDump.WriteLine("// Source File '{0}'", this.sourceFile);
}
this.writerDump.WriteLine("//[{0},{1} -- {2},{3}]", sourceInfo.Start.Line, sourceInfo.Start.Pos, sourceInfo.End.Line, sourceInfo.End.Pos);
}
}
#endif
//ISymbolDocumentWriter symDoc = this.module.AddSourceDocument(sourceFile);
//this.ilgen.MarkSequencePoint(symDoc, sourceInfo.Start.Line, sourceInfo.Start.Pos, sourceInfo.End.Line, sourceInfo.End.Pos);
_lastSourceInfo = sourceInfo;
}