public LeeDiagnosticInfo Add(ErrorCode code, Location location) { var info = new LeeDiagnosticInfo(code); var diag = new LeeDiagnostic(info, location); Add(diag); return(info); }
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); }