parsehelper

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFuncs

func ParseFuncs(parseFuncFlags PartsToParse) func(*Config)

func RootPath

func RootPath(rootPath string) func(*Config)

func Sources

func Sources(uniqueKeyForSources string, sources map[string]string) func(*Config)

Types

type Config

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

type FileConfigData

type FileConfigData struct {
	StructMap map[string]*ast.StructType

	Fset *token.FileSet
	Info *types.Info
	Pkg  *packages.Package
	// contains filtered or unexported fields
}

func ParseFilesForTest

func ParseFilesForTest(t *testing.T, options ...func(*Config)) *FileConfigData

func (*FileConfigData) GetActionsFn

func (c *FileConfigData) GetActionsFn(packageName string) *ast.FuncDecl

func (*FileConfigData) GetEdgesFn

func (c *FileConfigData) GetEdgesFn(packageName string) *ast.FuncDecl

type PartsToParse

type PartsToParse uint

files to parse...

const (
	ParseStruct PartsToParse = 1 << iota
	ParseEdges
	ParseActions
)

Jump to

Keyboard shortcuts

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