How to use escomplex-traits - 10 common examples

To help you get started, we’ve selected a few escomplex-traits examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andrewshawcare / thoughtworks-email-signature-generator / node_modules / grunt-plato / node_modules / plato / node_modules / escomplex-js / node_modules / escomplex-ast-moz / src / syntax / VariableDeclarator.js View on Github external
function get () {
    return traits.actualise(
        1, 0,
        {
            identifier: '=',
            filter: function (node) {
                return !!node.init;
            }
        },
        undefined, [ 'id', 'init' ],
        function (node) {
            return safeName(node.id);
        }
    );
}
github andrewshawcare / thoughtworks-email-signature-generator / node_modules / grunt-plato / node_modules / plato / node_modules / escomplex-js / node_modules / escomplex-ast-moz / src / syntax / UnaryExpression.js View on Github external
function get () {
    return traits.actualise(
        0, 0,
        function (node) {
            return node.operator + ' (' + (node.prefix ? 'pre' : 'post') + 'fix)';
        },
        undefined, [ 'argument' ]
    );
}
github andrewshawcare / thoughtworks-email-signature-generator / node_modules / grunt-plato / node_modules / plato / node_modules / escomplex-js / node_modules / escomplex-ast-moz / src / syntax / UpdateExpression.js View on Github external
function get () {
    return traits.actualise(
        0, 0,
        function (node) {
            return node.operator + ' (' + (node.prefix ? 'pre' : 'post') + 'fix)';
        },
        undefined, [ 'argument' ]
    );
}

escomplex-traits

Traits for escomplex AST walkers.

MIT
Latest version published 9 years ago

Package Health Score

46 / 100
Full package analysis

Popular escomplex-traits functions