We do not have a global index of references but we can find the references
of local symbols within the AST in the mean time. Also, since we will not
record local symbol references in the index, we will need that logic anyway.
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>