Class: ExpressionParser

ExpressionParser()

ExpressionParser is responsible for extracting state, computed properties, and methods from Avenx component source code.

Constructor

new ExpressionParser()

Source:

Methods

parseComputed(content) → {Object}

Extracts computed property definitions from tags.

Parameters:
Name Type Description
content string

The component source code.

Source:
Returns:

A map of computed property names to their expressions.

Type
Object

parseMethods(content) → {Object}

Extracts method definitions from tags.

Parameters:
Name Type Description
content string

The component source code.

Source:
Returns:

A map of method names to their source code.

Type
Object

parseState(content) → {Object}

Extracts the initial state from tags.

Parameters:
Name Type Description
content string

The component source code.

Source:
Returns:

The extracted state object.

Type
Object