• Parse a source file and return descriptions of all functions present in the source file. Each description includes the name of the function, and start and end coordinates. For anonymous functions the name is "".

    Parameters

    • source: string

      the contents of a source file

    • filetype: FileType

      the type of the source file (e.g. ECMAScript or TypeScript)

    Returns FunctionDesc[]

    Throws

    if the filetype is not supported, or if the source file cannot be parsed.

Generated using TypeDoc