Hierarchy

  • CodeParser

Constructors

Properties

ACORN_OPTIONS: Options = ...
DOC_RE: RegExp = ...
IMPORT_RE: RegExp = ...
LOAD_RE: RegExp = ...
code: string = null
config: any = {}
importStatements: ImportStatement[] = []
importedScriptCache: {
    [key: string]: ScriptVersion;
} = {}

Type declaration

  • [key: string]: ScriptVersion
importedScriptQueue: ImportStatement[] = []
io: IO = null
prestats: PreStats = null
statements: Statement[] = []
tree: any

Methods

  • Parameters

    • importedScript: ScriptVersion
    • importStatement: ImportStatement

    Returns string

  • Parameters

    • componentCode: string

    Returns string

  • Fetch component from cache or from servers

    Parameters

    • importStatement: ImportStatement

    Returns Promise<ScriptVersion>

  • Filter statement on a given filters

    Returns void

  • Parameters

    • node: Node

    Returns string

  • Get import script from cache

    Parameters

    • name: string

    Returns Promise<ScriptVersion>

  • Parameters

    • response: any

    Returns Promise<ScriptVersion>

  • Parameters

    • importStatement: ImportStatement

    Returns void

  • Split as best as possible into seperate statements to be executed

    Returns void

  • Parameters

    • script: ScriptVersion

    Returns void

  • Preload special statements like $import and $load which need to fetch data

    Returns Promise<Statement[]>

  • Parameters

    • importStatement: ImportStatement
    • importedScript: ScriptVersion

    Returns void

  • Parameters

    • code: string
    • config: any = null

    Returns void

Generated using TypeDoc