kythe

package
v0.0.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2021 License: Apache-2.0, NCSA Imports: 12 Imported by: 3

Documentation

Overview

Package kythe implements the kcd.Unit interface for Kythe compilations.

Index

Constants

View Source
const Format = "kythe"

Format is the format key used to denote Kythe compilations, stored as kythe.proto.CompilationUnit messages.

Variables

This section is empty.

Functions

func ConvertUnit

func ConvertUnit(v interface{}) (kcd.Unit, bool)

ConvertUnit reports whether v can be converted to a Kythe kcd.Unit, and if so returns the appropriate implementation.

Types

type Unit

type Unit struct{ Proto *apb.CompilationUnit }

Unit implements the kcd.Unit interface for Kythe compilations.

func (Unit) Canonicalize added in v0.0.27

func (u Unit) Canonicalize()

Canonicalize satisfies part of the kcd.Unit interface. It orders required inputs by the digest of their contents, orders environment variables and source paths by name, and orders compilation details by their type URL.

func (Unit) Digest added in v0.0.27

func (u Unit) Digest() string

Digest satisfies part of the kcd.Unit interface.

func (Unit) Index

func (u Unit) Index() kcd.Index

Index satisfies part of the kcd.Unit interface.

func (Unit) MarshalBinary

func (u Unit) MarshalBinary() ([]byte, error)

MarshalBinary satisfies the encoding.BinaryMarshaler interface.

func (Unit) MarshalJSON

func (u Unit) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the json.Marshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL