Home Reference Source Test

Function

Static Public Summary
public

parse(src: string, filePath: string): *

Parses the specified src string with babylon, returning the resulting AST and skipping the undocumented File root node, which is neither Babylon AST nor ESTree spec compliant.

Static Public

public parse(src: string, filePath: string): * source

Parses the specified src string with babylon, returning the resulting AST and skipping the undocumented File root node, which is neither Babylon AST nor ESTree spec compliant.

Params:

NameTypeAttributeDescription
src string

Source to parse

filePath string

Path to the file

Return:

*