本文整理汇总了C#中Mono.CompilerServices.SymbolWriter.SourceMethodBuilder.MarkSequencePoint方法的典型用法代码示例。如果您正苦于以下问题:C# SourceMethodBuilder.MarkSequencePoint方法的具体用法?C# SourceMethodBuilder.MarkSequencePoint怎么用?C# SourceMethodBuilder.MarkSequencePoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CompilerServices.SymbolWriter.SourceMethodBuilder
的用法示例。
在下文中一共展示了SourceMethodBuilder.MarkSequencePoint方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConvertSequencePoints
void ConvertSequencePoints (PdbFunction function, SourceFile file, SourceMethodBuilder builder)
{
foreach (var line in function.lines.SelectMany (lines => lines.lines))
builder.MarkSequencePoint (
(int) line.offset,
file.CompilationUnit.SourceFile,
(int) line.lineBegin,
(int) line.colBegin, line.lineBegin == 0xfeefee);
}
示例2: ConvertSequencePoints
void ConvertSequencePoints (PdbFunction function, SourceFile file, SourceMethodBuilder builder)
{
int last_line = 0;
foreach (var line in function.lines.SelectMany (lines => lines.lines)) {
// 0xfeefee is an MS convention, we can't pass it into mdb files, so we use the last non-hidden line
bool is_hidden = line.lineBegin == 0xfeefee;
builder.MarkSequencePoint (
(int) line.offset,
file.CompilationUnit.SourceFile,
is_hidden ? last_line : (int) line.lineBegin,
(int) line.colBegin, is_hidden);
if (!is_hidden)
last_line = (int) line.lineBegin;
}
}