本文整理汇总了C#中Mono.CSharp.AbstractMessage类的典型用法代码示例。如果您正苦于以下问题:C# AbstractMessage类的具体用法?C# AbstractMessage怎么用?C# AbstractMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractMessage类属于Mono.CSharp命名空间,在下文中一共展示了AbstractMessage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AbstractMessage
protected AbstractMessage(AbstractMessage aMsg)
{
this.code = aMsg.code;
this.location = aMsg.location;
this.message = aMsg.message;
this.extra_info = aMsg.extra_info;
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:7,代码来源:report.cs
示例2: OnMessage
void OnMessage(AbstractMessage msg)
{
var m = _printer;
if (m != null)
{
m(msg);
}
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:8,代码来源:Runner.cs
示例3: Print
public override void Print(AbstractMessage message, Boolean showFullPath)
{
if (message.IsWarning)
Trace.WriteLine("Warning: " + message.Text);
else
Trace.WriteLine("Error: " + message.Text);
base.Print(message, showFullPath);
}
开发者ID:Mofsy,项目名称:SharpCraft,代码行数:9,代码来源:DebuggerWindow.xaml.cs
示例4: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
if (msg.IsWarning)
{
++WarningsCount;
}
else
{
++ErrorsCount;
}
compilerResults.Errors.Add(new CompilerError()
{
IsWarning = msg.IsWarning,
Column = msg.Location.Column,
Line = msg.Location.Row,
ErrorNumber = msg.Code.ToString(),
ErrorText = msg.Text,
FileName = showFullPath ? msg.Location.SourceFile.FullPathName : msg.Location.SourceFile.Name,
// msg.RelatedSymbols // extra info
});
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:21,代码来源:CustomReportPrinter.cs
示例5: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
base.Print(msg, output, showFullPath);
}
开发者ID:Josh6680,项目名称:CSharpConsole-KSP,代码行数:4,代码来源:Evaluator.cs
示例6: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
base.Print(msg, showFullPath);
_errorReporter.Region = new DomRegion(msg.Location.NameFullPath, msg.Location.Row, msg.Location.Column, msg.Location.Row, msg.Location.Column);
_errorReporter.Message(msg.IsWarning ? MessageSeverity.Warning : MessageSeverity.Error, msg.Code, msg.Text.Replace("{", "{{").Replace("}", "}}"));
}
开发者ID:unintelligible,项目名称:SaltarelleCompiler,代码行数:6,代码来源:CompilerDriver.cs
示例7: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
Client.SendChat(ChatColors.Red + msg.Text);
}
开发者ID:SirCmpwn,项目名称:PartyCraft,代码行数:4,代码来源:ReplCommand.cs
示例8: Print
public override void Print(AbstractMessage msg)
{
base.Print(msg);
_r.OnMessage(msg);
}
开发者ID:RainsSoft,项目名称:MonoCompilerAsAService,代码行数:5,代码来源:Runner.cs
示例9: Print
public override void Print (AbstractMessage msg, bool showFullPath)
{
Print (msg, writer, showFullPath);
base.Print (msg, showFullPath);
}
开发者ID:Profit0004,项目名称:mono,代码行数:5,代码来源:report.cs
示例10: Print
public override void Print (AbstractMessage msg)
{
Print (msg, writer);
base.Print (msg);
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:5,代码来源:report.cs
示例11: Print
public override void Print (AbstractMessage msg)
{
base.Print (msg);
Error newError = new Error (msg.IsWarning ? ErrorType.Warning : ErrorType.Error, msg.Location.Row, msg.Location.Column, msg.Text);
Errors.Add (newError);
}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:6,代码来源:McsParser.cs
示例12: ErrorMessage
public ErrorMessage (AbstractMessage aMsg)
: base (aMsg)
{
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:4,代码来源:report.cs
示例13: Print
// public readonly List<Error> Errors = new List<Error> ();
public override void Print (AbstractMessage msg)
{
Console.WriteLine (msg.MessageType + " (" + msg.Location + ")" + ": " + msg.Text);
base.Print (msg);
// Error newError = new Error (msg.IsWarning ? ErrorType.Warning : ErrorType.Error, msg.Location.Row, msg.Location.Column, msg.Text);
// Errors.Add (newError);
}
开发者ID:rmattuschka,项目名称:ILSpy,代码行数:9,代码来源:CSharpParser.cs
示例14: Print
public override void Print (AbstractMessage msg)
{
//
// This line is useful when debugging recorded messages
//
// Console.WriteLine ("RECORDING: {0}", msg.ToString ());
if (session_messages == null)
session_messages = new List<AbstractMessage> ();
session_messages.Add (msg);
base.Print (msg);
}
开发者ID:litoMalone,项目名称:mono,代码行数:14,代码来源:report.cs
示例15: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
base.Print(msg, showFullPath);
unreadMessages.Enqueue(msg);
}
开发者ID:Baggykiin,项目名称:BaggyBot-2,代码行数:5,代码来源:IrcReportPrinter.cs
示例16: Print
public override void Print (AbstractMessage msg, bool showFullPath)
{
var line = 0;
var column = 0;
try {
line = msg.Location.Row;
column = msg.Location.Column;
} catch {
//Log (ex);
}
var m = new EvalMessage {
MessageType = msg.MessageType,
Text = msg.Text,
Line = line,
Column = column,
};
Messages.Add (m);
//
// Print it to the console if there's an error
//
if (msg.MessageType == "error") {
var tm = msg.Text;
System.Threading.ThreadPool.QueueUserWorkItem (_ =>
Console.WriteLine ("ERROR: {0}", tm));
}
}
开发者ID:mono,项目名称:Continuous,代码行数:28,代码来源:VM.cs
示例17: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
Message = msg;
}
开发者ID:kaa,项目名称:manhole,代码行数:4,代码来源:ManholeRouteHandler.cs
示例18: Print
public override void Print (AbstractMessage msg, bool showFullPath)
{
Assert.Fail (msg.Text);
}
开发者ID:REALTOBIZ,项目名称:mono,代码行数:4,代码来源:AssertReportPrinter.cs
示例19: Print
public override void Print(AbstractMessage msg)
{
messages.Append(msg.Text);
}
开发者ID:superyfwy,项目名称:db4o,代码行数:4,代码来源:CodeCompiler.cs
示例20: Print
public virtual void Print (AbstractMessage msg)
{
if (msg.IsWarning) {
++WarningsCount;
} else {
++ErrorsCount;
if (ErrorsCount == FatalCounter)
throw new Exception (msg.Text);
}
}
开发者ID:constructor-igor,项目名称:cudafy,代码行数:11,代码来源:report.cs
注:本文中的Mono.CSharp.AbstractMessage类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论