declpath

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclPath

type DeclPath struct {
	Type   DeclType
	Prefix path.TypePath
	Suffix path.TypePath // only valid when Type != DeclPlain; may never be absolute
}

func Empty

func Empty() DeclPath

func Root

func Root() DeclPath

func (DeclPath) Add

func (d DeclPath) Add(segment string) DeclPath

func (DeclPath) AddDecl

func (d DeclPath) AddDecl(t DeclType) DeclPath

func (DeclPath) CanAdd

func (d DeclPath) CanAdd() bool

func (DeclPath) CanAddDecl

func (d DeclPath) CanAddDecl() bool

func (DeclPath) IsAbsolute

func (d DeclPath) IsAbsolute() bool

func (DeclPath) IsEmpty

func (d DeclPath) IsEmpty() bool

func (DeclPath) IsPlain

func (d DeclPath) IsPlain() bool

func (DeclPath) IsProcDef

func (t DeclPath) IsProcDef() bool

func (DeclPath) IsVarDef

func (t DeclPath) IsVarDef() bool

func (DeclPath) IsVerbDef

func (t DeclPath) IsVerbDef() bool

func (DeclPath) Join

func (d DeclPath) Join(o DeclPath) (DeclPath, bool)

func (DeclPath) SplitDef

func (t DeclPath) SplitDef() (target path.TypePath, typePath path.TypePath, name string)

func (DeclPath) String

func (d DeclPath) String() string

func (DeclPath) Unwrap

func (d DeclPath) Unwrap() path.TypePath

type DeclType

type DeclType int
const (
	DeclInvalid DeclType = iota
	DeclPlain
	DeclVar
	DeclProc
	DeclVerb
)

func (DeclType) String

func (t DeclType) String() string

Jump to

Keyboard shortcuts

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