Skip to content

Function: createFsTextSourceBuilder() ​

ts
function createFsTextSourceBuilder(filePath): FsTextSourceNode;

Defined in: fs/src/builders/create-fs-text-source-builder.ts:14

Compiles a passive FsTextSourceNode (fs:text-source) for fs.text(filePath).

Resolves filePath against the immutable host repository root during control-plane and prefix compilation, or against ResolutionContext.scopeHandle when computing in-run grounding diffs.

Parameters ​

ParameterTypeDescription
filePathstringRepository-relative path to the UTF-8 text file.

Returns ​

FsTextSourceNode

Deeply frozen FsTextSourceNode AST descriptor.

Released under the MIT License.