Skip to main content

parseSilverSourceAst

@hardkas/core


@hardkas/core / parseSilverSourceAst

Function: parseSilverSourceAst()

parseSilverSourceAst(source, home?): Promise<Record<string, unknown>>

Defined in: packages/core/src/silverscript.ts:447

The official parser's AST of a SilverScript source (silverc --ast-only). Returned as silverc wrote it; callers read only the nodes they need.

Parameters​

source​

string | Uint8Array<ArrayBufferLike>

home?​

string

Returns​

Promise<Record<string, unknown>>