|
6 | 6 | /// kythe.io/docs/schema/ |
7 | 7 | library; |
8 | 8 |
|
9 | | -const ANCHOR_END_FACT = '/kythe/loc/end'; |
| 9 | +const anchorEndFact = '/kythe/loc/end'; |
10 | 10 |
|
11 | 11 | /// Kythe node kinds |
12 | | -const ANCHOR_KIND = 'anchor'; |
13 | | -const ANCHOR_START_FACT = '/kythe/loc/start'; |
| 12 | +const anchorKind = 'anchor'; |
| 13 | +const anchorStartFact = '/kythe/loc/start'; |
14 | 14 |
|
15 | 15 | /// Kythe edge kinds |
16 | | -const ANNOTATED_BY_EDGE = '${EDGE_PREFIX}annotatedby'; |
| 16 | +const annotatedByEdge = '${edgePrefix}annotatedby'; |
17 | 17 |
|
18 | | -const CHILD_OF_EDGE = '${EDGE_PREFIX}childof'; |
| 18 | +const childOfEdge = '${edgePrefix}childof'; |
19 | 19 |
|
20 | 20 | /// Kythe node subkinds |
21 | | -const CLASS_SUBKIND = 'class'; |
| 21 | +const classSubkind = 'class'; |
22 | 22 |
|
23 | | -const COMPLETE_FACT = '/kythe/complete'; |
24 | | -const CONSTANT_KIND = 'constant'; |
| 23 | +const completeFact = '/kythe/complete'; |
| 24 | +const constantKind = 'constant'; |
25 | 25 |
|
26 | | -const CONSTRUCTOR_SUBKIND = 'constructor'; |
| 26 | +const constructorSubkind = 'constructor'; |
27 | 27 |
|
28 | 28 | /// Dart specific facts, labels, and kinds |
29 | | -const DART_LANG = 'dart'; |
| 29 | +const dartLang = 'dart'; |
30 | 30 |
|
31 | 31 | /// DEFAULT_TEXT_ENCODING is the assumed value of the TEXT_ENCODING_FACT if it |
32 | 32 | /// is empty or missing from a node with a TEXT_FACT. |
33 | | -const DEFAULT_TEXT_ENCODING = 'UTF-8'; |
34 | | -const DEFINES_BINDING_EDGE = '${EDGE_PREFIX}defines/binding'; |
| 33 | +const defaultTextEncoding = 'UTF-8'; |
| 34 | +const definesBindingEdge = '${edgePrefix}defines/binding'; |
35 | 35 |
|
36 | 36 | /// Kythe edge kinds associated with anchors |
37 | | -const DEFINES_EDGE = '${EDGE_PREFIX}defines'; |
| 37 | +const definesEdge = '${edgePrefix}defines'; |
38 | 38 |
|
39 | | -const DEFINITION = 'definition'; |
| 39 | +const definition = 'definition'; |
40 | 40 |
|
41 | | -const DOC_KIND = 'doc'; |
| 41 | +const docKind = 'doc'; |
42 | 42 |
|
43 | | -const DOCUMENTS_EDGE = '${EDGE_PREFIX}documents'; |
44 | | -const DYNAMIC_KIND = 'dynamic#builtin'; |
| 43 | +const documentsEdge = '${edgePrefix}documents'; |
| 44 | +const dynamicKind = 'dynamic#builtin'; |
45 | 45 |
|
46 | 46 | /// EdgePrefix is the standard Kythe prefix for all edge kinds. |
47 | | -const EDGE_PREFIX = '/kythe/edge/'; |
48 | | -const ENUM_CLASS_SUBKIND = 'enumClass'; |
49 | | -const ENUM_KIND = 'enum'; |
50 | | -const EXTENDS_EDGE = '${EDGE_PREFIX}extends'; |
51 | | -const FIELD_SUBKIND = 'field'; |
52 | | -const FILE_KIND = 'file'; |
53 | | -const FN_BUILTIN = 'fn#builtin'; |
54 | | -const FUNCTION_KIND = 'function'; |
| 47 | +const edgePrefix = '/kythe/edge/'; |
| 48 | +const enumClassSubkind = 'enumClass'; |
| 49 | +const enumKind = 'enum'; |
| 50 | +const extendsEdge = '${edgePrefix}extends'; |
| 51 | +const fieldSubkind = 'field'; |
| 52 | +const fileKind = 'file'; |
| 53 | +const fnBuiltin = 'fn#builtin'; |
| 54 | +const functionKind = 'function'; |
55 | 55 |
|
56 | | -const IMPLICIT_SUBKIND = 'implicit'; |
| 56 | +const implicitSubkind = 'implicit'; |
57 | 57 |
|
58 | 58 | /// Kythe complete states |
59 | | -const INCOMPLETE = 'incomplete'; |
60 | | -const INSTANTIATES_EDGE = '${EDGE_PREFIX}instantiates'; |
61 | | -const LOCAL_PARAMETER_SUBKIND = 'local/parameter'; |
62 | | -const LOCAL_SUBKIND = 'local'; |
| 59 | +const incomplete = 'incomplete'; |
| 60 | +const instantiatesEdge = '${edgePrefix}instantiates'; |
| 61 | +const localParameterSubkind = 'local/parameter'; |
| 62 | +const localSubkind = 'local'; |
63 | 63 |
|
64 | 64 | /// Kythe node fact labels |
65 | | -const NODE_KIND_FACT = '/kythe/node/kind'; |
| 65 | +const nodeKindFact = '/kythe/node/kind'; |
66 | 66 |
|
67 | 67 | /// Kythe ordinal |
68 | | -const ORDINAL = '/kythe/ordinal'; |
| 68 | +const ordinal = '/kythe/ordinal'; |
69 | 69 |
|
70 | | -const OVERRIDES_EDGE = '${EDGE_PREFIX}overrides'; |
71 | | -const PACKAGE_KIND = 'package'; |
| 70 | +const overridesEdge = '${edgePrefix}overrides'; |
| 71 | +const packageKind = 'package'; |
72 | 72 |
|
73 | | -const PARAM_EDGE = '${EDGE_PREFIX}param'; |
| 73 | +const paramEdge = '${edgePrefix}param'; |
74 | 74 |
|
75 | | -const RECORD_KIND = 'record'; |
| 75 | +const recordKind = 'record'; |
76 | 76 |
|
77 | | -const REF_CALL_EDGE = '${EDGE_PREFIX}ref/call'; |
78 | | -const REF_EDGE = '${EDGE_PREFIX}ref'; |
79 | | -const REF_IMPORTS_EDGE = '${EDGE_PREFIX}ref/imports'; |
80 | | -const SNIPPET_END_FACT = '/kythe/snippet/end'; |
81 | | -const SNIPPET_START_FACT = '/kythe/snippet/start'; |
82 | | -const SUBKIND_FACT = '/kythe/subkind'; |
83 | | -const TAPP_KIND = 'tapp'; |
| 77 | +const refCallEdge = '${edgePrefix}ref/call'; |
| 78 | +const refEdge = '${edgePrefix}ref'; |
| 79 | +const refImportsEdge = '${edgePrefix}ref/imports'; |
| 80 | +const snippetEndFact = '/kythe/snippet/end'; |
| 81 | +const snippetStartFact = '/kythe/snippet/start'; |
| 82 | +const subkindFact = '/kythe/subkind'; |
| 83 | +const tappKind = 'tapp'; |
84 | 84 |
|
85 | | -const TEXT_ENCODING_FACT = '/kythe/text/encoding'; |
86 | | -const TEXT_FACT = '/kythe/text'; |
87 | | -const TEXT_FORMAT = '/kythe/format'; |
88 | | -const TYPED_EDGE = '${EDGE_PREFIX}typed'; |
89 | | -const VARIABLE_KIND = 'variable'; |
90 | | -const VOID_BUILTIN = 'void#builtin'; |
| 85 | +const textEncodingFact = '/kythe/text/encoding'; |
| 86 | +const textFact = '/kythe/text'; |
| 87 | +const textFormat = '/kythe/format'; |
| 88 | +const typedEdge = '${edgePrefix}typed'; |
| 89 | +const variableKind = 'variable'; |
| 90 | +const voidBuiltin = 'void#builtin'; |
0 commit comments