Versions in this module Expand all Collapse all v0 v0.3.0 Jul 1, 2023 v0.2.0 Jun 30, 2023 Changes in this version + func ConvertLinePosToOffsets(base int, lines []token.Pos) []int + func FileSpliceLines(f *token.File, newLines []int) bool + func ShiftCommentGroupPos(delta token.Pos, cg *ast.CommentGroup) + func ShiftGenDeclPos(delta token.Pos, spec *ast.GenDecl) + func ShiftImportSpecPos(delta token.Pos, spec *ast.ImportSpec) + type PosRange struct + End token.Pos + Pos token.Pos + func ASTNodeRangeWithComments(node ast.Node) PosRange