Antlr4.Tool.DefaultToolListener.Warning C# (CSharp) 메소드

Warning() 공개 메소드

public Warning ( ANTLRMessage msg ) : void
msg ANTLRMessage
리턴 void
        public virtual void Warning(ANTLRMessage msg)
        {
            Template msgST = tool.errMgr.GetMessageTemplate(msg);
            string outputMsg = msgST.Render();
            if (tool.errMgr.FormatWantsSingleLineMessage())
            {
                outputMsg = outputMsg.Replace('\n', ' ');
            }

            Console.Error.WriteLine(outputMsg);
        }
    }