Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Side by Side Diff: pkg/analysis_server/lib/src/services/kythe/schema.dart

Issue 2987193002: Some initial work for the Dart Kythe indexer support in the analysis server (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/services/kythe/kythe_visitors.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 /// This file gathers constant strings from the Kythe Schema:
6 /// kythe.io/docs/schema/
7
8 /// Dart specific facts, labels, and kinds
9 const DART_LANG = 'dart';
10 const DYNAMIC_KIND = 'dynamic#builtin';
11 const FN_BUILTIN = 'fn#builtin';
12 const VOID_BUILTIN = 'void#builtin';
13
14 /// Kythe node fact labels
15 const NODE_KIND_FACT = '/kythe/node/kind';
16 const SUBKIND_FACT = '/kythe/subkind';
17
18 const ANCHOR_START_FACT = '/kythe/loc/start';
19 const ANCHOR_END_FACT = '/kythe/loc/end';
20
21 const SNIPPET_START_FACT = '/kythe/snippet/start';
22 const SNIPPET_END_FACT = '/kythe/snippet/end';
23
24 const TEXT_FACT = '/kythe/text';
25 const TEXT_ENCODING_FACT = '/kythe/text/encoding';
26
27 const COMPLETE_FACT = '/kythe/complete';
28
29 const TEXT_FORMAT = '/kythe/format';
30
31 /// DEFAULT_TEXT_ENCODING is the assumed value of the TEXT_ENCODING_FACT if it
32 /// is empty or missing from a node with a TEXT_FACT.
33 const DEFAULT_TEXT_ENCODING = 'UTF-8';
34
35 /// Kythe node kinds
36 const ANCHOR_KIND = 'anchor';
37 const FILE_KIND = 'file';
38
39 const CONSTANT_KIND = 'constant';
40 const DOC_KIND = 'doc';
41 const ENUM_KIND = 'enum';
42 const FUNCTION_KIND = 'function';
43 const PACKAGE_KIND = 'package';
44 const RECORD_KIND = 'record';
45 const TAPP_KIND = 'tapp';
46 const VARIABLE_KIND = 'variable';
47
48 /// Kythe node subkinds
49 const CLASS_SUBKIND = 'class';
50 const CONSTRUCTOR_SUBKIND = 'constructor';
51 const ENUM_CLASS_SUBKIND = 'enumClass';
52 const IMPLICIT_SUBKIND = 'implicit';
53 const FIELD_SUBKIND = 'field';
54 const LOCAL_SUBKIND = 'local';
55 const LOCAL_PARAMETER_SUBKIND = 'local/parameter';
56
57 /// Kythe complete states
58 const INCOMPLETE = 'incomplete';
59 const DEFINITION = 'definition';
60
61 /// Kythe ordinal
62 const ORDINAL = '/kythe/ordinal';
63
64 /// EdgePrefix is the standard Kythe prefix for all edge kinds.
65 const EDGE_PREFIX = '/kythe/edge/';
66
67 /// Kythe edge kinds
68 const ANNOTATED_BY_EDGE = EDGE_PREFIX + "annotatedby";
69 const CHILD_OF_EDGE = EDGE_PREFIX + "childof";
70 const EXTENDS_EDGE = EDGE_PREFIX + "extends";
71 const INSTANTIATES_EDGE = EDGE_PREFIX + "instantiates";
72 const OVERRIDES_EDGE = EDGE_PREFIX + "overrides";
73 const PARAM_EDGE = EDGE_PREFIX + "param";
74 const TYPED_EDGE = EDGE_PREFIX + "typed";
75
76 /// Kythe edge kinds associated with anchors
77 const DEFINES_EDGE = EDGE_PREFIX + "defines";
78 const DEFINES_BINDING_EDGE = EDGE_PREFIX + "defines/binding";
79 const DOCUMENTS_EDGE = EDGE_PREFIX + "documents";
80 const REF_EDGE = EDGE_PREFIX + "ref";
81 const REF_CALL_EDGE = EDGE_PREFIX + "ref/call";
82 const REF_IMPORTS_EDGE = EDGE_PREFIX + "ref/imports";
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/kythe/kythe_visitors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698