Skip to main content

parseIRFile

@a16njs/plugin-a16n


@a16njs/plugin-a16n / parseIRFile

Function: parseIRFile()

parseIRFile(rootOrWorkspace, filePath, filename, sourcePath): Promise<ParseIRFileResult>

Defined in: parse.ts:51

Parse an IR file from a workspace.

Parameters

rootOrWorkspace

Workspace or root path string

string | Workspace

filePath

string

Path to the file relative to workspace root

filename

string

Filename (used to derive name)

sourcePath

string

Path relative to .a16n/ directory (e.g., ".a16n/global-prompt/coding-standards.md")

Returns

Promise<ParseIRFileResult>

ParseIRFileResult with either item or error