kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/go/util/schema/nodes/nodes.go (about) 1 /* 2 * Copyright 2016 The Kythe Authors. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 // Package nodes defines constants for Kythe nodes. 18 package nodes // import "kythe.io/kythe/go/util/schema/nodes" 19 20 // Node kind labels 21 const ( 22 Abs = "abs" 23 Anchor = "anchor" 24 Constant = "constant" 25 Diagnostic = "diagnostic" 26 Doc = "doc" 27 File = "file" 28 Function = "function" 29 Interface = "interface" 30 Name = "name" 31 Package = "package" 32 Record = "record" 33 Symbol = "symbol" 34 TAlias = "talias" 35 TApp = "tapp" 36 TBuiltin = "tbuiltin" 37 TNominal = "tnominal" 38 TVar = "tvar" 39 Variable = "variable" 40 ) 41 42 // Node subkinds 43 const ( 44 Class = "class" 45 Enum = "enum" 46 EnumClass = "enumClass" 47 Field = "field" 48 Implicit = "implicit" 49 Local = "local" 50 LocalParameter = "local/parameter" 51 Struct = "struct" 52 Type = "type" 53 Union = "union" 54 )