lib/parser.js
function parseAlternateMappingsCall(node, output) {
        var firstArgument = node.expression.arguments[0];

        if (firstArgument && firstArgument.type === 'ObjectExpression') {
            firstArgument.properties.forEach(function(prop) {
                var aliasClassNames = getPropertyValue(prop);  // Could be a string or an array of strings
                if (aliasClassNames && aliasClassNames.length > 0) {
                    var className = prop.key.value;

                    if (! output.aliasNames) {
                        output.aliasNames = {};
                    }

                    if (typeof aliasClassNames === 'string') {
                        aliasClassNames = [ aliasClassNames ];
                    }

                    var existingAliasClassNames = output.aliasNames[className];
                    if (existingAliasClassNames) {
                        aliasClassNames = existingAliasClassNames.concat(aliasClassNames);
                    }

                    output.aliasNames[className] = unique(aliasClassNames);
                }
            });

            if (options.optimizeSource) {
                // Remove `uses` from parsed file
                node.update('/* call to Ext.ClassManager.addNameAlternateMappings removed */');
            }
        }
    }
function parseAlternateMappingsCall(node, output) {
        var firstArgument = node.expression.arguments[0];

        if (firstArgument && firstArgument.type === 'ObjectExpression') {
            firstArgument.properties.forEach(function(prop) {
                var aliasClassNames = getPropertyValue(prop);  // Could be a string or an array of strings
                if (aliasClassNames && aliasClassNames.length > 0) {
                    var className = prop.key.value;

                    if (! output.aliasNames) {
                        output.aliasNames = {};
                    }

                    if (typeof aliasClassNames === 'string') {
                        aliasClassNames = [ aliasClassNames ];
                    }

                    var existingAliasClassNames = output.aliasNames[className];
                    if (existingAliasClassNames) {
                        aliasClassNames = existingAliasClassNames.concat(aliasClassNames);
                    }

                    output.aliasNames[className] = unique(aliasClassNames);
                }
            });

            if (options.optimizeSource) {
                // Remove `uses` from parsed file
                node.update('/* call to Ext.ClassManager.addNameAlternateMappings removed */');
            }
        }
    }
function parseAlternateMappingsCall ( node , output ) { var firstArgument = node . expression . arguments [ 0 ] ; if ( firstArgument && firstArgument . type === 'ObjectExpression' ) { firstArgument . properties . forEach ( function ( prop ) { var aliasClassNames = getPropertyValue ( prop ) ; // Could be a string or an array of strings if ( aliasClassNames && aliasClassNames . length > 0 ) { var className = prop . key . value ; if ( ! output . aliasNames ) { output . aliasNames = { } ; } if ( typeof aliasClassNames === 'string' ) { aliasClassNames = [ aliasClassNames ] ; } var existingAliasClassNames = output . aliasNames [ className ] ; if ( existingAliasClassNames ) { aliasClassNames = existingAliasClassNames . concat ( aliasClassNames ) ; } output . aliasNames [ className ] = unique ( aliasClassNames ) ; } } ) ; if ( options . optimizeSource ) { // Remove `uses` from parsed file node . update ( '/* call to Ext.ClassManager.addNameAlternateMappings removed */' ) ; } } }
Parses a call to Ext.ClassManager.addNameAlternateMappings
Parses a call to Ext . ClassManager . addNameAlternateMappings