🚧 Still under progress. Soon will be finished.

parseFromSource

FUNCTION code

Description

Reflects a simplified version of the TypeScript Abstract Syntax Tree from a TypeScript code snippet

Signature

parseFromSource(source: string, options: Partial<AnalyserOptions>): Promise<AnalyserResult>

Parameters

Name Type Default Description
source string

A string that represents the TypeScript source code

options Partial<AnalyserOptions> {}

Options to configure the analyzer

Returns

Promise<AnalyserResult>:

The reflected TypeScript AST