package parser

import "github.com/markbates/pkger/parser"

Index

Types

type Decl

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

type Decls

type Decls []Decl

func Parse

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

func (Decls) Files

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

type File

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

func (File) String

func (f File) String() string

type Filer

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

type OpenDecl

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

func (OpenDecl) File

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

func (OpenDecl) Files

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

func (OpenDecl) Pos

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

func (OpenDecl) Value

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

type WalkDecl

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

func (WalkDecl) File

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

func (WalkDecl) Files

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

func (WalkDecl) Pos

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

func (WalkDecl) Value

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

Source Files

decl.go file.go open.go parser.go visitor.go walk.go

Version
v0.3.2
Published
Oct 22, 2019
Platform
js/wasm
Imports
14 packages
Last checked
9 hours ago

Tools for package owners.