Reference Source Test
import ESParser from 'esdoc2/out/src/Parser/ESParser.js'
public class | source

ESParser

ECMAScript Parser class.

Example:

let ast = ESParser.parse('./src/foo.js');

Static Method Summary

Static Public Methods
public static

parse(filePath: string): AST

parse ECMAScript source code.

Static Public Methods

public static parse(filePath: string): AST source

parse ECMAScript source code.

Params:

NameTypeAttributeDescription
filePath string

source code file path.

Return:

AST

AST of source code.