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
41
42
43
44
45
//! Definition / declaration / references navigation: `Location`,
//! `LocationLink`, and the flat-list normaliser used by every
//! `textDocument/{definition,declaration,typeDefinition,references}`
//! response shape.
use Value;
use parse_range;
use crateLocation;
/// Parse a `LocationLink` and reduce it to the same shape as `Location`
/// (taking `targetUri` + `targetSelectionRange`).
/// `textDocument/definition` may answer with a single `Location`, a
/// single `LocationLink`, an array of either, or `null`. Normalise to a
/// flat `Vec<Location>`.