type Operation
import bend-lint-api@0.2.0.0/linter/lint.bend as Lintimport Base
483# An edit a fix asks for: replace a span's text; rename what the declaration written at `at` declares, with each of its
484# uses; or rename only its uses, to point them at a name the program declares already (to drop a duplicate import,
485# say). A rename changes an import's alias, the first part of each use (`U` of `U.two`), and any other name's last part.
486# The linter finds the uses, and drops the fix if the text does not write the name where one of them is. It drops a
487# Rename of a global name (a def, type, constructor or law), as files the check did not read can use it, and one whose
488# new name is taken where the declaration is.
489type Operation is Data:
490 Replace{span: Span, text: String}
491 Rename{at: Span, to: String}
492 RenameUses{at: Span, to: String}