Enum SourcePathScrubMode
How Scrub(string, SourcePathScrubMode) rewrites a source-file path it finds in error / stack-trace text.
public enum SourcePathScrubMode
Fields
FileName = 1Replace each path with its file name only — e.g.
DeclarationsParseTreeListener.cs:line 241.Redacted = 2Replace each path with the literal
<source>, keeping only the line number — e.g.<source>:line 241.RepoRelative = 0Rewrite each path to one relative to the RDCore repository root — e.g.
RDCore.Parsing/AST/DeclarationsParseTreeListener.cs:line 241. Falls back to FileName for a path that cannot be anchored to an RDCore project folder. This is the default.