Function
formatRefinementKind
(kind: Refinement["kind"])
Source from the content-addressed store, hash-verified
| 1798 | } |
| 1799 | |
| 1800 | const formatRefinementKind = (kind: Refinement["kind"]): string => { |
| 1801 | switch (kind) { |
| 1802 | case "From": |
| 1803 | return "From side refinement failure" |
| 1804 | case "Predicate": |
| 1805 | return "Predicate refinement failure" |
| 1806 | } |
| 1807 | } |
| 1808 | |
| 1809 | const getAnnotated = (issue: ParseIssue): Option.Option<AST.Annotated> => |
| 1810 | "ast" in issue ? Option.some(issue.ast) : Option.none() |
Tested by
no test coverage detected