Example #1
0
        public LeeDiagnosticInfo Add(ErrorCode code, Location location)
        {
            var info = new LeeDiagnosticInfo(code);
            var diag = new LeeDiagnostic(info, location);

            Add(diag);
            return(info);
        }
Example #2
0
        public LeeDiagnosticInfo Add(ErrorCode code, Location location, params object[] args)
        {
            var info = new LeeDiagnosticInfo(code, args);
            var diag = new LeeDiagnostic(info, location);

            Add(diag);
            return(info);
        }