Handles rewriting of Scala2 files to Dotty
Attributes
Members list
Type members
Classlikes
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.
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
- Supertypes
Value members
Concrete methods
Given a CodeAction take the patches and apply them.
Given a CodeAction take the patches and apply them.
Value parameters
- action
-
The CodeAction containing the patches
Attributes
Does span
overlap with a patch region of source
?
Does span
overlap with a patch region of source
?
Attributes
If -rewrite is set, record a patch that replaces the range given by span
in source
by replacement
If -rewrite is set, record a patch that replaces the range given by span
in source
by replacement
Attributes
Patch position in ctx.compilationUnit.source
.
Patch position in ctx.compilationUnit.source
.