Documentation ¶
Overview ¶
Package schema defines constants used in the Kythe schema.
Index ¶
- Constants
- func EdgeKind(k string) scpb.EdgeKind
- func EdgeKindString(k scpb.EdgeKind) string
- func FactName(f string) scpb.FactName
- func FactNameString(f scpb.FactName) string
- func GetEdgeKind(e *scpb.Edge) string
- func GetFactName(f *scpb.Fact) string
- func GetNodeKind(n *scpb.Node) string
- func GetSubkind(n *scpb.Node) string
- func NodeKind(k string) scpb.NodeKind
- func NodeKindString(k scpb.NodeKind) string
- func Subkind(k string) scpb.Subkind
- func SubkindString(k scpb.Subkind) string
- type Edge
- type Facts
- type Node
Constants ¶
const ( // AnchorLocFilter is a fact filter for anchor locations. AnchorLocFilter = "/kythe/loc/*" // SnippetLocFilter is a fact filter for snippet locations. SnippetLocFilter = "/kythe/snippet/*" )
const Prefix = "/kythe/"
Prefix is the label prefix for the Kythe schema.
Variables ¶
This section is empty.
Functions ¶
func EdgeKindString ¶ added in v0.0.27
EdgeKindString returns the string representation of the given edge kind.
func FactNameString ¶ added in v0.0.27
FactNameString returns the string representation of the given fact name.
func GetEdgeKind ¶ added in v0.0.29
GetEdgeKind returns the string representation of the edge's kind.
func GetFactName ¶ added in v0.0.29
GetFactName returns the string representation of the fact's name.
func GetNodeKind ¶ added in v0.0.29
GetNodeKind returns the string representation of the node's kind.
func GetSubkind ¶ added in v0.0.29
GetSubkind returns the string representation of the node's subkind.
func NodeKindString ¶ added in v0.0.27
NodeKindString returns the string representation of the given node kind.
func SubkindString ¶ added in v0.0.27
SubkindString returns the string representation of the given subkind.
Types ¶
type Node ¶ added in v0.0.25
A Node represents a collection of facts about a node.
func (*Node) AddFact ¶ added in v0.0.25
AddFact adds the specified fact to n, replacing any previous value for that fact that may exist.
Directories ¶
Path | Synopsis |
---|---|
Package edges defines constants for Kythe edges.
|
Package edges defines constants for Kythe edges. |
Package facts defines constants for Kythe facts.
|
Package facts defines constants for Kythe facts. |
Program mkdata parses the kythe.proto.schema.Metadata from the Kythe schema.proto file descriptor into a Go/Java source file that can be compiled into the schema util package.
|
Program mkdata parses the kythe.proto.schema.Metadata from the Kythe schema.proto file descriptor into a Go/Java source file that can be compiled into the schema util package. |
Package nodes defines constants for Kythe nodes.
|
Package nodes defines constants for Kythe nodes. |
Package tickets defines functions for manipulating Kythe tickets.
|
Package tickets defines functions for manipulating Kythe tickets. |