source

package
v0.8.1-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Done

type Done string

func (Done) Error

func (d Done) Error() string

type NoNodeError

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

func (NoNodeError) Error

func (n NoNodeError) Error() string

type Searcher

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

func New

func New() *Searcher

func (*Searcher) FirstNodeAt

func (s *Searcher) FirstNodeAt(fname string, line int) (*ast.File, ast.Node, error)

Returns the first node at the given file:line.

func (*Searcher) NextLines

func (s *Searcher) NextLines(fname string, line int) (lines []int, err error)

Returns all possible lines that could be executed after the given file:line, within the same source file.

Jump to

Keyboard shortcuts

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