package pfff

  1. Overview
  2. Docs
Tools and APIs for program analysis, code visualization, refactoring

Install

Dune Dependency

Authors

Maintainers

Sources

0.39.1.tar.gz
md5=19e3eb1003161d8e7ed65c96c4f69d52
sha512=37834e1726a004272fbc153fc4cd0a6afdf02b7918acf27492acd60890c32591eb8f5b22fcfd99dd707d8507b8208bdb24c99de9fd940cc2ad0171f1d103743f

doc/pfff-h_program-lang/Errors_code/index.html

Module Errors_code

type error = {
  1. typ : error_kind;
  2. loc : Parse_info.token_location;
  3. sev : severity;
}
and severity =
  1. | Error
  2. | Warning
and error_kind =
  1. | Deadcode of entity
  2. | UndefinedDefOfDecl of entity
  3. | UnusedExport of entity * Common.filename
  4. | UnusedVariable of string * Scope_code.t
  5. | SgrepLint of string * string
and entity = string * Entity_code.entity_kind
type annotation =
  1. | AtScheck of string
type identifier_index = (string, Parse_info.token_location) Hashtbl.t
val string_of_error : error -> string
val string_of_error_kind : error_kind -> string
val g_errors : error list ref
val error : Parse_info.token_location -> error_kind -> unit
val warning : Parse_info.token_location -> error_kind -> unit
type rank =
  1. | Never
  2. | OnlyStrict
  3. | Less
  4. | Ok
  5. | Important
  6. | ReallyImportant
val score_of_rank : rank -> int
val rank_of_error : error -> rank
val score_of_error : error -> int
val annotation_at : Parse_info.token_location -> annotation option
val adjust_errors : error list -> error list
OCaml

Innovation. Community. Security.