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
46
47
48
49
50
//! Identifier and name types used throughout the Cypher AST.
//!
//! All name types carry a [`Span`] so that diagnostics can point to the exact
//! source location.
use crateSpan;
/// A symbolic identifier, optionally backtick-quoted in the source.
///
/// Covers node/relationship variables, function names, label names, property
/// key names, and any other identifier-shaped token.
/// A variable binding such as `n`, `r`, or `path` in a query.
///
/// Variables are always backed by a [`SymbolicName`] that carries the source
/// location.
/// A node label name, e.g. `Person` in `(n:Person)`.
/// A relationship type name, e.g. `KNOWS` in `-[:KNOWS]->`.
/// A property key name, e.g. `name` in `n.name`.