Structureswift-syntax 600.0.1SwiftSyntax
IncrementalEdit
Utils.swift:50struct IncrementalEdit
struct IncrementalEdit
import SwiftSyntax
A library for working with Swift code.
protocol Equatable
A type that can be compared for value equality.
protocol Sendable
init(offset: Int, length: Int, replacement: String)
init(offset: Int, length: Int, replacement: [UInt8])
var endOffset: Int { get }
var length: Int { get }
var offset: Int { get }
let range: ByteSourceRange
The byte range of the original source buffer that the edit applies to.
let replacement: [UInt8]
The UTF-8 bytes that should be inserted as part of the edit
var replacementLength: Int { get }
The length of the edit replacement in UTF8 bytes.
var replacementRange: ByteSourceRange { get }
After the edit has been applied the range of the replacement text.
func intersectsOrTouchesRange(_ other: ByteSourceRange) -> Bool
func intersectsRange(_ other: ByteSourceRange) -> Bool
init(offset: Int, length: Int, replacementLength: Int)
init(range: ByteSourceRange, replacementLength: Int)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.