ActionPatch

dotty.tools.dotc.rewrites.Rewrites.ActionPatch
case class ActionPatch(srcPos: SourcePosition, replacement: String)

A special type of Patch that instead of just a span, contains the full SourcePosition. This is useful when being used by dotty.tools.dotc.reporting.CodeAction or if the patch doesn't belong to the same file that the actual issue it's addressing is in.

Value parameters

replacement

The Replacement that should go in that position.

srcPos

The SourcePosition of the patch.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product