Documentation
¶
Overview ¶
utilities used by mutation operators.
Index ¶
- func BuildTypeMap(fn *ast.FuncDecl) map[string]string
- func CloneBlockStmt(stmt *ast.BlockStmt) *ast.BlockStmt
- func CloneStmt(stmt ast.Stmt) ast.Stmt
- func FindNode(node, target ast.Node) bool
- func FindParentNode(target ast.Node, file *ast.File, predicates ...func(ast.Node) bool) ast.Node
- func HasCompatibleVar(vars []VarInfo, exclude, targetType string) bool
- func IsBoolLiteral(expr ast.Expr) bool
- func IsErrorCall(expr ast.Expr) bool
- func IsErrorExpr(expr ast.Expr) bool
- func IsErrorNil(expr ast.Expr) bool
- func IsInsideCaseClause(ret *ast.ReturnStmt, file *ast.File) bool
- func IsInsideIfStmt(n ast.Node, parent ast.Node) bool
- func IsInsideLoop(n ast.Node, file *ast.File) bool
- func IsNumericIdent(name string) bool
- func IsNumericLiteral(expr ast.Expr) bool
- func IsReturnStmtWithResults(n ast.Node, min int) (*ast.ReturnStmt, bool)
- func IsStringLiteral(expr ast.Expr) bool
- func ResolveType(expr ast.Expr, typeMap map[string]string) string
- func TypeExprToString(expr ast.Expr) string
- func TypesCompatible(a, b string) bool
- type VarInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindParentNode ¶
func HasCompatibleVar ¶
func IsBoolLiteral ¶
func IsErrorCall ¶
func IsErrorExpr ¶
func IsErrorNil ¶
func IsInsideCaseClause ¶
func IsInsideCaseClause(ret *ast.ReturnStmt, file *ast.File) bool
func IsNumericIdent ¶
func IsNumericLiteral ¶
func IsReturnStmtWithResults ¶
func IsStringLiteral ¶
func TypeExprToString ¶
func TypesCompatible ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.