ast

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodePos

type CodePos struct {
	Line   int
	Column int
}

type MethodCodeBoundaries

type MethodCodeBoundaries struct {
	Package string
	Name    string
	File    string
	Start   CodePos
	End     CodePos
}

func GetFuncSource

func GetFuncSource(pc uintptr) (*MethodCodeBoundaries, error)

Gets the function source code boundaries from a method

func GetFuncSourceForName

func GetFuncSourceForName(pc uintptr, name string) (*MethodCodeBoundaries, error)

Gets the function source code boundaries from a method

func GetFuncSourceFromCaller

func GetFuncSourceFromCaller(skip int) (*MethodCodeBoundaries, error)

Gets the function source code boundaries from the caller method

Jump to

Keyboard shortcuts

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