IdentifierPreserver class
Static utility that marks identifiers for preservation during compaction.
Uses regex-based detection to find file paths, tool names, UUIDs, and URLs,
then wraps them in <preserve>...</preserve> tags so the compaction engine
knows to keep them intact.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
preserve(
String text, CompactionPolicy policy) → String -
Marks identifiers in
textfor preservation based on the givenpolicy.