Methods
parseComputed(content) → {Object}
Extracts computed property definitions from
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
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
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string | The component source code. |
- Source:
Returns:
The extracted state object.
- Type
- Object