HashlineSectionResult class final
Per-section result returned by HashlinePatcher.apply / HashlinePatcher.commit.
Constructors
-
HashlineSectionResult({required String path, required String canonicalPath, required HashlineSectionOp op, required String before, required String after, required String persisted, required String fileHash, required String header, required List<
String> warnings, int? firstChangedLine}) -
Creates a section result.
const
Properties
- after → String
-
Post-edit text (LF-normalized, BOM-stripped). For
HashlineSectionOp.noop equals before.
final
- before → String
-
Pre-edit text (LF-normalized, BOM-stripped).
final
- canonicalPath → String
-
Env-canonical key for this section (absolute path).
final
- fileHash → String
-
4-hex content-hash tag for after. Use to anchor follow-up edits.
final
- firstChangedLine → int?
-
1-indexed first changed line in after, or
nullfor noops.final - hashCode → int
-
The hash code for this object.
no setterinherited
- header → String
-
Hashline section header (
[path#tag]) of the post-edit content.final - op → HashlineSectionOp
-
Whether the file was written.
final
- path → String
-
Section path (as authored).
final
- persisted → String
-
Same text as after but with the original BOM and line ending
restored — what was (or would be) written.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
warnings
→ List<
String> -
Warnings collected by the parser and patcher.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited