Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeCollector ¶
NodeCollector defines the interface for types that can collect and process AST nodes from a source file.
type NodeFilter ¶
NodeFilter defines the interface for types that can determine if an AST node should be excluded from mutation.
type SkipMakeArgsFilter ¶
type SkipMakeArgsFilter struct { // IgnoredNodes maps positions of numeric literals to their parent 'make' call expressions IgnoredNodes map[token.Pos]*ast.CallExpr }
SkipMakeArgsFilter is a filter that tracks numeric arguments in 'make' calls for slices and maps to be ignored during mutation.
func NewSkipMakeArgsFilter ¶
func NewSkipMakeArgsFilter() *SkipMakeArgsFilter
NewSkipMakeArgsFilter creates and returns a new initialized Processor.
func (*SkipMakeArgsFilter) Collect ¶
Collect collects numeric arguments (children) from 'make' calls (parents) for slices/maps to be ignored during mutation
func (*SkipMakeArgsFilter) ShouldSkip ¶
func (s *SkipMakeArgsFilter) ShouldSkip(node ast.Node, _ string) bool
ShouldSkip determines whether a given AST node should be skipped during mutation.
Click to show internal directories.
Click to hide internal directories.