1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/// Context used to draw a miette source frame around an error.
///
/// Points at the offending token inside a synthetic *source* line so that
/// miette can render the `╭─[…] │ · ─┬─ ╰──` snippet, e.g.:
///
/// ```text
/// io::misc_io_error (link)
///
/// ✖ io error: No such file or directory (os error 2)
/// ╭─[eck:1:5]
/// 1 │ eck this_directory_is_absurd
/// · ────────────┬───────────
/// · ╰── I/O
/// ╰────
/// help: Check that the path exists and that you have the required permissions.
/// ```