parser

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decl added in v0.3.0

type Decl interface {
	File() (*File, error)
	Pos() (token.Pos, error)
	Value() (string, error)
}

type Decls added in v0.3.0

type Decls []Decl

func Parse

func Parse(her here.Info) (Decls, error)

func (Decls) Files added in v0.3.0

func (decls Decls) Files() ([]*File, error)

type File added in v0.3.0

type File struct {
	Abs  string // full path on disk to file
	Path here.Path
	Here here.Info
}

func (File) String added in v0.3.0

func (f File) String() string

type Filer added in v0.3.0

type Filer interface {
	Files() ([]*File, error)
}

type OpenDecl added in v0.3.0

type OpenDecl struct {
	// contains filtered or unexported fields
}

func (OpenDecl) File added in v0.3.0

func (d OpenDecl) File() (*File, error)

func (OpenDecl) Files added in v0.3.0

func (d OpenDecl) Files() ([]*File, error)

func (OpenDecl) Pos added in v0.3.0

func (d OpenDecl) Pos() (token.Pos, error)

func (OpenDecl) Value added in v0.3.0

func (d OpenDecl) Value() (string, error)

type WalkDecl added in v0.3.0

type WalkDecl struct {
	// contains filtered or unexported fields
}

func (WalkDecl) File added in v0.3.0

func (d WalkDecl) File() (*File, error)

func (WalkDecl) Files added in v0.3.0

func (d WalkDecl) Files() ([]*File, error)

func (WalkDecl) Pos added in v0.3.0

func (d WalkDecl) Pos() (token.Pos, error)

func (WalkDecl) Value added in v0.3.0

func (d WalkDecl) Value() (string, error)

Jump to

Keyboard shortcuts

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