def

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition interface {
	ID

	Path() string
	Name() string
	OriginalName() string
	Exported() bool
	Omitted() bool
	Type() types.Type
	Kind() string
	Dependencies() ([]Definition, error)
	Imports() map[string]string
	FromRuntime() bool
}

Definition interface

type Field

type Field interface {
	Name() string
	Type() ast.Expr
}

Field interface

type FunctionResult

type FunctionResult interface {
	Name() string
	Definition() Definition
}

FunctionResult interface

type ID

type ID interface {
	ID() string
}

ID interface

type InterfaceMethod

type InterfaceMethod interface {
	Rewritee

	OriginalName() string
	Name() string
}

InterfaceMethod interface

type Rewrite

type Rewrite interface {
	Rewritee() Rewritee
	Expression() string
	Vars() []RewriteVariable
}

Rewrite interface

type RewriteVariable

type RewriteVariable interface {
	Definition() Definition
	Node() ast.Expr
	String() (string, error)
}

RewriteVariable interface

type Rewritee

type Rewritee interface {
	ID() string
	Params() []string
	Rewrite() Rewrite
	IsVariadic() bool
}

Rewritee is the original method or function getting rewritten

Jump to

Keyboard shortcuts

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