Diagnostic

is a single lint finding: the rule that fired, a human-readable message, the source text of the offending form, and the form's start line and col as captured by the parser.

col

instantiate

(Fn [(Ref Diagnostic a)] (Ref Int a))

gets the col property of a Diagnostic.

context

instantiate

(Fn [(Ref Diagnostic a)] (Ref String a))

gets the context property of a Diagnostic.

copy

instantiate

(Fn [(Ref Diagnostic a)] Diagnostic)

copies a Diagnostic.

delete

instantiate

(Fn [Diagnostic] ())

deletes a Diagnostic. Should usually not be called manually.

init

instantiate

(Fn [String, String, String, Int, Int] Diagnostic)

creates a Diagnostic.

line

instantiate

(Fn [(Ref Diagnostic a)] (Ref Int a))

gets the line property of a Diagnostic.

message

instantiate

(Fn [(Ref Diagnostic a)] (Ref String a))

gets the message property of a Diagnostic.

prn

instantiate

(Fn [(Ref Diagnostic a)] String)

converts a Diagnostic to a string.

rule

instantiate

(Fn [(Ref Diagnostic a)] (Ref String a))

gets the rule property of a Diagnostic.

set-col

instantiate

(Fn [Diagnostic, Int] Diagnostic)

sets the col property of a Diagnostic.

set-col!

instantiate

(Fn [(Ref Diagnostic a), Int] ())

sets the col property of a Diagnostic in place.

set-context

instantiate

(Fn [Diagnostic, String] Diagnostic)

sets the context property of a Diagnostic.

set-context!

instantiate

(Fn [(Ref Diagnostic a), String] ())

sets the context property of a Diagnostic in place.

set-line

instantiate

(Fn [Diagnostic, Int] Diagnostic)

sets the line property of a Diagnostic.

set-line!

instantiate

(Fn [(Ref Diagnostic a), Int] ())

sets the line property of a Diagnostic in place.

set-message

instantiate

(Fn [Diagnostic, String] Diagnostic)

sets the message property of a Diagnostic.

set-message!

instantiate

(Fn [(Ref Diagnostic a), String] ())

sets the message property of a Diagnostic in place.

set-rule

instantiate

(Fn [Diagnostic, String] Diagnostic)

sets the rule property of a Diagnostic.

set-rule!

instantiate

(Fn [(Ref Diagnostic a), String] ())

sets the rule property of a Diagnostic in place.

str

defn

(Fn [(Ref Diagnostic a)] String)

                        (str d)
                    

renders a diagnostic as line:col: [rule] message followed by an indented at: line with the offending form's text.

update-col

instantiate

(Fn [Diagnostic, (Ref (Fn [Int] Int a) b)] Diagnostic)

updates the col property of a Diagnostic using a function f.

update-context

instantiate

(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)

updates the context property of a Diagnostic using a function f.

update-line

instantiate

(Fn [Diagnostic, (Ref (Fn [Int] Int a) b)] Diagnostic)

updates the line property of a Diagnostic using a function f.

update-message

instantiate

(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)

updates the message property of a Diagnostic using a function f.

update-rule

instantiate

(Fn [Diagnostic, (Ref (Fn [String] String a) b)] Diagnostic)

updates the rule property of a Diagnostic using a function f.