setSourcePath

open fun setSourcePath(sourcePath: Path): ParseResult<T>(source)

Associates a source path with this parse result. Returns this for chaining.

Notes: - Intended for use by infrastructure (e.g., SourceRoot) to publish the originating file path. - Should be called immediately after parsing and not modified afterwards to avoid surprises in concurrent contexts. - The provided path is expected to be absolute.