forked from chipsalliance/verible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkythe_schema_constants.h
66 lines (58 loc) · 3.09 KB
/
kythe_schema_constants.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright 2017-2020 The Verible Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef VERIBLE_VERILOG_TOOLS_KYTHE_KYTHE_SCHEMA_CONSTANTS_H_
#define VERIBLE_VERILOG_TOOLS_KYTHE_KYTHE_SCHEMA_CONSTANTS_H_
#include "absl/strings/string_view.h"
namespace verilog {
namespace kythe {
// Kythe Nodes.
inline constexpr absl::string_view kNodeAnchor = "anchor";
inline constexpr absl::string_view kNodeRecord = "record";
inline constexpr absl::string_view kNodeInterface = "interface";
inline constexpr absl::string_view kNodePackage = "package";
inline constexpr absl::string_view kNodeMacro = "macro";
inline constexpr absl::string_view kNodeConstant = "constant";
inline constexpr absl::string_view kNodeFile = "file";
inline constexpr absl::string_view kNodeBuiltin = "tbuiltin";
inline constexpr absl::string_view kSubkindModule = "module";
inline constexpr absl::string_view kSubkindConstructor = "constructor";
inline constexpr absl::string_view kSubkindProgram = "program";
inline constexpr absl::string_view kCompleteDefinition = "definition";
inline constexpr absl::string_view kInComplete = "incomplete";
inline constexpr absl::string_view kNodeVariable = "variable";
inline constexpr absl::string_view kNodeFunction = "function";
inline constexpr absl::string_view kNodeTAlias = "talias";
// Facts for kythe.
inline constexpr absl::string_view kFactText = "/kythe/text";
inline constexpr absl::string_view kFactNodeKind = "/kythe/node/kind";
inline constexpr absl::string_view kFactSubkind = "/kythe/subkind";
inline constexpr absl::string_view kFactComplete = "/kythe/complete";
inline constexpr absl::string_view kFactAnchorEnd = "/kythe/loc/end";
inline constexpr absl::string_view kFactAnchorStart = "/kythe/loc/start";
// Edges for kythe.
inline constexpr absl::string_view kEdgeDefinesBinding =
"/kythe/edge/defines/binding";
inline constexpr absl::string_view kEdgeChildOf = "/kythe/edge/childof";
inline constexpr absl::string_view kEdgeRef = "/kythe/edge/ref";
inline constexpr absl::string_view kEdgeRefExpands = "/kythe/edge/ref/expands";
inline constexpr absl::string_view kEdgeRefCall = "/kythe/edge/ref/call";
inline constexpr absl::string_view kEdgeRefImports = "/kythe/edge/ref/imports";
inline constexpr absl::string_view kEdgeExtends = "/kythe/edge/extends";
inline constexpr absl::string_view kEdgeRefIncludes =
"/kythe/edge/ref/includes";
inline constexpr absl::string_view kEdgeTyped = "/kythe/edge/typed";
inline constexpr absl::string_view kEdgeOverrides = "/kythe/edge/overrides";
} // namespace kythe
} // namespace verilog
#endif // VERIBLE_VERILOG_TOOLS_KYTHE_KYTHE_SCHEMA_CONSTANTS_H_