本文整理匯總了C#中Mono.CSharp.ReportPrinter.Print方法的典型用法代碼示例。如果您正苦於以下問題:C# ReportPrinter.Print方法的具體用法?C# ReportPrinter.Print怎麽用?C# ReportPrinter.Print使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mono.CSharp.ReportPrinter
的用法示例。
在下文中一共展示了ReportPrinter.Print方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Merge
//
// Prints collected messages, common messages have a priority
//
public bool Merge (ReportPrinter dest)
{
var messages_to_print = merged_messages;
if (common_messages != null && common_messages.Count > 0) {
messages_to_print = common_messages;
}
if (messages_to_print == null)
return false;
bool error_msg = false;
foreach (AbstractMessage msg in messages_to_print) {
dest.Print (msg);
error_msg |= !msg.IsWarning;
}
return error_msg;
}
示例2: Merge
//
// Prints collected messages, common messages have a priority
//
public bool Merge (ReportPrinter dest)
{
ArrayList messages_to_print = merged_messages;
if (common_messages != null && common_messages.Count > 0) {
messages_to_print = common_messages;
}
if (messages_to_print == null)
return false;
foreach (AbstractMessage msg in messages_to_print)
dest.Print (msg);
return true;
}
示例3: Merge
//
// Prints collected messages, common messages have a priority
//
public bool Merge (ReportPrinter dest)
{
var messages_to_print = merged_messages;
if (common_messages != null && common_messages.Count > 0) {
messages_to_print = common_messages;
}
if (messages_to_print == null)
return false;
bool error_msg = false;
foreach (AbstractMessage msg in messages_to_print) {
dest.Print (msg, showFullPaths);
error_msg |= !msg.IsWarning;
}
if (reported_missing_definitions != null) {
foreach (var missing in reported_missing_definitions)
dest.MissingTypeReported (missing);
}
return error_msg;
}