UNPKG

2.44 kBTypeScriptView Raw
1/*!
2 * Copyright 2016 The ANTLR Project. All rights reserved.
3 * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
4 */
5/**
6 *
7 * @author Sam Harwell
8 */
9export declare enum Dependents {
10 /**
11 * The element is dependent upon the specified rule.
12 */
13 SELF = 0,
14 /**
15 * The element is dependent upon the set of the specified rule's parents
16 * (rules which directly reference it).
17 */
18 PARENTS = 1,
19 /**
20 * The element is dependent upon the set of the specified rule's children
21 * (rules which it directly references).
22 */
23 CHILDREN = 2,
24 /**
25 * The element is dependent upon the set of the specified rule's ancestors
26 * (the transitive closure of `PARENTS` rules).
27 */
28 ANCESTORS = 3,
29 /**
30 * The element is dependent upon the set of the specified rule's descendants
31 * (the transitive closure of `CHILDREN` rules).
32 */
33 DESCENDANTS = 4,
34 /**
35 * The element is dependent upon the set of the specified rule's siblings
36 * (the union of `CHILDREN` of its `PARENTS`).
37 */
38 SIBLINGS = 5,
39 /**
40 * The element is dependent upon the set of the specified rule's preceeding
41 * siblings (the union of `CHILDREN` of its `PARENTS` which
42 * appear before a reference to the rule).
43 */
44 PRECEEDING_SIBLINGS = 6,
45 /**
46 * The element is dependent upon the set of the specified rule's following
47 * siblings (the union of `CHILDREN` of its `PARENTS` which
48 * appear after a reference to the rule).
49 */
50 FOLLOWING_SIBLINGS = 7,
51 /**
52 * The element is dependent upon the set of the specified rule's preceeding
53 * elements (rules which might end before the start of the specified rule
54 * while parsing). This is calculated by taking the
55 * `PRECEEDING_SIBLINGS` of the rule and each of its
56 * `ANCESTORS`, along with the `DESCENDANTS` of those
57 * elements.
58 */
59 PRECEEDING = 8,
60 /**
61 * The element is dependent upon the set of the specified rule's following
62 * elements (rules which might start after the end of the specified rule
63 * while parsing). This is calculated by taking the
64 * `FOLLOWING_SIBLINGS` of the rule and each of its
65 * `ANCESTORS`, along with the `DESCENDANTS` of those
66 * elements.
67 */
68 FOLLOWING = 9
69}