本文整理汇总了C#中Mono.CSharp.AbstractMessage类的典型用法代码示例。如果您正苦于以下问题:C# AbstractMessage类的具体用法?C# AbstractMessage怎么用?C# AbstractMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractMessage类属于Mono.CSharp命名空间,在下文中一共展示了AbstractMessage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: OnMessage
void OnMessage(AbstractMessage msg)
{
var m = _printer;
if (m != null)
{
m(msg);
}
}
示例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);
}
示例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
});
}
示例5: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
base.Print(msg, output, showFullPath);
}
示例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("}", "}}"));
}
示例7: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
Client.SendChat(ChatColors.Red + msg.Text);
}
示例8: Print
public override void Print(AbstractMessage msg)
{
base.Print(msg);
_r.OnMessage(msg);
}
示例9: Print
public override void Print (AbstractMessage msg, bool showFullPath)
{
Print (msg, writer, showFullPath);
base.Print (msg, showFullPath);
}
示例10: Print
public override void Print (AbstractMessage msg)
{
Print (msg, writer);
base.Print (msg);
}
示例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);
}
示例12: ErrorMessage
public ErrorMessage (AbstractMessage aMsg)
: base (aMsg)
{
}
示例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);
}
示例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);
}
示例15: Print
public override void Print(AbstractMessage msg, bool showFullPath)
{
base.Print(msg, showFullPath);
unreadMessages.Enqueue(msg);
}