t_tree_static

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNodeInFile

func FindNodeInFile(fset *token.FileSet, astFile *ast.File, nodeID string) (*ast.CompositeLit, error)

FindNodeInFile searches for a node definition in a file

func GetNodeProps

func GetNodeProps(fset *token.FileSet, astFile *ast.File, nodeID string, props []string) (map[string]ast.Node, error)

GetNodeProps handles the request to extract just the Assert function from a test case

func GetNodePropsAsFuncs

func GetNodePropsAsFuncs(fset *token.FileSet, astFile *ast.File, code string, nodeID string, keys []string) (map[string]string, error)

GetNodePropsAsFuncs handles the request to extract just the Assert function from a test case

func ParseCode

func ParseCode(fset *token.FileSet, content string) (*ast.File, error)

ParseCode parses Go code content into an AST file

func ParseFile

func ParseFile(fset *token.FileSet, file string) (*ast.File, []byte, error)

ParseFile parses a Go file into an AST file

Types

This section is empty.

Jump to

Keyboard shortcuts

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