ViolationCorrection
public struct ViolationCorrection : Hashable
The correction of a violation that is basically the violation’s range in the source code and a replacement for this range that would fix the violation.
-
Create a
ViolationCorrection.Declaration
Swift
public init(start: AbsolutePosition, end: AbsolutePosition, replacement: String)Parameters
startStart position of the violation range.
endEnd position of the violation range.
replacementReplacement for the violating range.
View on GitHub
Install in Dash