gog

package
v0.0.0-...-3ef3b95 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: MIT, BSD-3-Clause Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = loader.Config{
	TypeChecker: types.Config{FakeImportC: true},
	Build:       &build.Default,
	AllowErrors: true,
}

Functions

This section is empty.

Types

type Def

type Def struct {
	Name string

	*DefKey

	File      string
	IdentSpan [2]uint32
	DeclSpan  [2]uint32

	definfo.DefInfo
}

type DefKey

type DefKey struct {
	PackageImportPath string
	Path              []string
}

func (*DefKey) String

func (s *DefKey) String() string

type Doc

type Doc struct {
	*DefKey

	Unit   string
	Format string
	Data   string

	File string    `json:",omitempty"`
	Span [2]uint32 `json:",omitempty"`
}

type Output

type Output struct {
	Defs []*Def
	Refs []*Ref
	Docs []*Doc
}

func Graph

func Graph(fset *token.FileSet, files []*ast.File, typesPkg *types.Package, typesInfo *types.Info, includeDocs bool) *Output

func (*Output) Append

func (o *Output) Append(o2 *Output)

type Ref

type Ref struct {
	Unit string
	File string
	Span [2]uint32
	Def  *DefKey

	// IsDef is true if ref is to the definition of Def, and false if it's to a
	// use of Def.
	IsDef bool
}

Directories

Path Synopsis
cmd
gog
Package definfo is separate from gog so that its members can be imported without pulling in gog's other dependencies.
Package definfo is separate from gog so that its members can be imported without pulling in gog's other dependencies.

Jump to

Keyboard shortcuts

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