Inheritance: ANTLRMessage
コード例 #1
0
        public virtual void Panic(ErrorType errorType, params object[] args)
        {
            ToolMessage msg       = new ToolMessage(errorType, args);
            Template    msgST     = GetMessageTemplate(msg);
            string      outputMsg = msgST.Render();

            if (FormatWantsSingleLineMessage())
            {
                outputMsg = outputMsg.Replace('\n', ' ');
            }
            Panic(outputMsg);
        }
コード例 #2
0
ファイル: ErrorManager.cs プロジェクト: sharwell/antlr4cs
 public virtual void Panic(ErrorType errorType, params object[] args)
 {
     ToolMessage msg = new ToolMessage(errorType, args);
     Template msgST = GetMessageTemplate(msg);
     string outputMsg = msgST.Render();
     if (FormatWantsSingleLineMessage())
     {
         outputMsg = outputMsg.Replace('\n', ' ');
     }
     Panic(outputMsg);
 }
コード例 #3
0
        public virtual void ToolError(ErrorType errorType, Exception e, params object[] args)
        {
            ToolMessage msg = new ToolMessage(errorType, e, args);

            Emit(errorType, msg);
        }
コード例 #4
0
ファイル: ErrorManager.cs プロジェクト: sharwell/antlr4cs
 public virtual void ToolError(ErrorType errorType, Exception e, params object[] args)
 {
     ToolMessage msg = new ToolMessage(errorType, e, args);
     Emit(errorType, msg);
 }