postprocess

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collapse

func Collapse(
	es *actions.EditScript,
	ms *engine.Mapping,
	srcRoot, dstRoot *treesitter.ASTNode,
) *actions.EditScript

Collapse cleans up fine-grained actions in the edit script by folding fully inserted or deleted children into subtree actions, and dropping redundant scaffolding and wrapper actions.

func GroupMoves

func GroupMoves(es *actions.EditScript) *actions.EditScript

GroupMoves groups Move actions that share the same source and destination parents. Bare aliased literals are excluded.

func KillChildren

func KillChildren(
	parent *treesitter.ASTNode,
	actionMap map[*treesitter.ASTNode]*actions.Action,
	suppressed map[*actions.Action]bool,
)

KillChildren marks all descendant actions as suppressed under a collapsed subtree.

func Run

func Run(
	es *actions.EditScript,
	ms *engine.Mapping,
	srcRoot, dstRoot *treesitter.ASTNode,
) *actions.EditScript

Run applies postprocessing passes (collapsing subtrees and grouping moves) to the edit script.

Types

This section is empty.

Jump to

Keyboard shortcuts

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