|
|
@ -56,8 +56,7 @@ let log_issue_from_summary severity summary ~node ~session ~loc ~ltr ?linters_de
|
|
|
|
~linters_def_file ~doc_url ~access ~extras exn
|
|
|
|
~linters_def_file ~doc_url ~access ~extras exn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let log_issue_deprecated_using_state severity proc_name ?node ?loc ?ltr ?linters_def_file ?doc_url
|
|
|
|
let log_issue_deprecated_using_state severity proc_name ?node ?loc ?ltr exn =
|
|
|
|
?access ?extras:_ exn =
|
|
|
|
|
|
|
|
match Summary.get proc_name with
|
|
|
|
match Summary.get proc_name with
|
|
|
|
| Some summary ->
|
|
|
|
| Some summary ->
|
|
|
|
let node =
|
|
|
|
let node =
|
|
|
@ -67,8 +66,7 @@ let log_issue_deprecated_using_state severity proc_name ?node ?loc ?ltr ?linters
|
|
|
|
let session = State.get_session () in
|
|
|
|
let session = State.get_session () in
|
|
|
|
let loc = match loc with None -> State.get_loc () | Some loc -> loc in
|
|
|
|
let loc = match loc with None -> State.get_loc () | Some loc -> loc in
|
|
|
|
let ltr = match ltr with None -> State.get_loc_trace () | Some ltr -> ltr in
|
|
|
|
let ltr = match ltr with None -> State.get_loc_trace () | Some ltr -> ltr in
|
|
|
|
log_issue_from_summary severity summary ~node ~session ~loc ~ltr ?linters_def_file ?doc_url
|
|
|
|
log_issue_from_summary severity summary ~node ~session ~loc ~ltr exn
|
|
|
|
?access exn
|
|
|
|
|
|
|
|
| None ->
|
|
|
|
| None ->
|
|
|
|
L.(die InternalError)
|
|
|
|
L.(die InternalError)
|
|
|
|
"Trying to report error on procedure %a, but cannot because no summary exists for this \
|
|
|
|
"Trying to report error on procedure %a, but cannot because no summary exists for this \
|
|
|
|