src/transformer.js
function transformSpecialAttribute(name, attribute) {
        if (t.isJSXExpressionContainer(attribute.value)) {
            let value = attribute.value.expression;
            switch (name) {
                case "ui5ControlData":
                    renderer.renderControlData(value);
                    break;
                case "ui5ElementData":
                    renderer.renderElementData(value);
                    break;
                case "ui5AccessibilityData":
                    renderer.handleAccessibilityData(value);
                    break;
                default:
                    error(attribute, "Unknown special attribute: '" + name + "'.");
            }
        } else {
            error(attribute, "Only expressions supported in special attributes.");
        }
    }
function transformSpecialAttribute(name, attribute) {
        if (t.isJSXExpressionContainer(attribute.value)) {
            let value = attribute.value.expression;
            switch (name) {
                case "ui5ControlData":
                    renderer.renderControlData(value);
                    break;
                case "ui5ElementData":
                    renderer.renderElementData(value);
                    break;
                case "ui5AccessibilityData":
                    renderer.handleAccessibilityData(value);
                    break;
                default:
                    error(attribute, "Unknown special attribute: '" + name + "'.");
            }
        } else {
            error(attribute, "Only expressions supported in special attributes.");
        }
    }
function transformSpecialAttribute ( name , attribute ) { if ( t . isJSXExpressionContainer ( attribute . value ) ) { let value = attribute . value . expression ; switch ( name ) { case "ui5ControlData" : renderer . renderControlData ( value ) ; break ; case "ui5ElementData" : renderer . renderElementData ( value ) ; break ; case "ui5AccessibilityData" : renderer . handleAccessibilityData ( value ) ; break ; default : error ( attribute , "Unknown special attribute: '" + name + "'." ) ; } } else { error ( attribute , "Only expressions supported in special attributes." ) ; } }
Transforms the special attribute with the given name.
Transforms the special attribute with the given name .