Table of Contents

Enum SourcePathScrubMode

Namespace
RDCore.SDK.ConsoleIO
Assembly
RDCore.SDK.dll

How Scrub(string, SourcePathScrubMode) rewrites a source-file path it finds in error / stack-trace text.

public enum SourcePathScrubMode

Fields

FileName = 1

Replace each path with its file name only — e.g. DeclarationsParseTreeListener.cs:line 241.

Redacted = 2

Replace each path with the literal <source>, keeping only the line number — e.g. <source>:line 241.

RepoRelative = 0

Rewrite 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.