class AfxService (View source)

Class AfxService

Constants

protected INDENTATION

protected SHORTHAND_META_PATHS

Methods

static string
convertAfxToFusion(string $afxCode, string $indentation = '')

No description

static string
astToFusion(array $ast, string $indentation = '')

No description

static string
astBooleanToFusion(bool $payload)

No description

static string
astExpressionToFusion(string $payload)

No description

static string
astStringToFusion(string $payload)

No description

static string
astTextToFusion(string $payload)

No description

static string
propToFusion(array $attribute, string $attributePrefix, string $indentation = '')

No description

static string
propListToFusion(array $payload, string $attributePrefix, string $indentation = '')

No description

static string
astNodeToFusion(array $payload, string $indentation = '')

No description

static string
astNodeListToFusion(array $payload, string $indentation = '')

No description

static string
renderFusionAttributes(iterable $attributes, string $attributePrefix, string $indentation)

No description

static Generator
attributesSortPropsAndGeneratePropLists(iterable $attributes)

No description

static Generator
attributesGeneratePathForShorthandFusionMetaPath(iterable $attributes)

No description

static Generator
attributesRemoveKeyAndPathAndExtractChildrenName(iterable $attributes, string $childrenPropertyName)

filter attributes and remove {@key}, {@path} and {@children} attributes also extract the {@children} to the reference param

Details

static string convertAfxToFusion(string $afxCode, string $indentation = '')

No description

Parameters

string $afxCode
string $indentation

Return Value

string

Exceptions

AfxException
AfxParserException

static protected string astToFusion(array $ast, string $indentation = '')

No description

Parameters

array $ast
string $indentation

Return Value

string

static protected string astBooleanToFusion(bool $payload)

No description

Parameters

bool $payload

Return Value

string

static protected string astExpressionToFusion(string $payload)

No description

Parameters

string $payload

Return Value

string

static protected string astStringToFusion(string $payload)

No description

Parameters

string $payload

Return Value

string

static protected string astTextToFusion(string $payload)

No description

Parameters

string $payload

Return Value

string

static protected string propToFusion(array $attribute, string $attributePrefix, string $indentation = '')

No description

Parameters

array $attribute
string $attributePrefix
string $indentation

Return Value

string

static protected string propListToFusion(array $payload, string $attributePrefix, string $indentation = '')

No description

Parameters

array $payload
string $attributePrefix
string $indentation

Return Value

string

static protected string astNodeToFusion(array $payload, string $indentation = '')

No description

Parameters

array $payload
string $indentation

Return Value

string

static protected string astNodeListToFusion(array $payload, string $indentation = '')

No description

Parameters

array $payload
string $indentation

Return Value

string

static protected string renderFusionAttributes(iterable $attributes, string $attributePrefix, string $indentation)

No description

Parameters

iterable $attributes
string $attributePrefix
string $indentation

Return Value

string

static protected Generator attributesSortPropsAndGeneratePropLists(iterable $attributes)

No description

Parameters

iterable $attributes

Return Value

Generator

static protected Generator attributesGeneratePathForShorthandFusionMetaPath(iterable $attributes)

No description

Parameters

iterable $attributes

Return Value

Generator

static protected Generator attributesRemoveKeyAndPathAndExtractChildrenName(iterable $attributes, string $childrenPropertyName)

filter attributes and remove {@key}, {@path} and {@children} attributes also extract the {@children} to the reference param

Parameters

iterable $attributes
string $childrenPropertyName

Return Value

Generator