lines

package
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lines

type Lines struct {
	// contains filtered or unexported fields
}
Example
w := walker.New("lines.go")
New(w.SrcFile, w.AstFile, w.FileSet)
Output:

func New

func New(src string, astFile *ast.File, fileSet *token.FileSet) *Lines

func (*Lines) Get

func (l *Lines) Get(lineNum int) string

func (*Lines) IsComment

func (l *Lines) IsComment(lineNum int) bool

func (*Lines) Num

func (l *Lines) Num() int

Jump to

Keyboard shortcuts

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