dist/utils.js
function getDecoratorTypeFromArguments(args) {
    'use strict';
    if (args.length === 0 || args.length > 3) {
        return DecoratorType.None;
    }
    var kind = typeof (args.length === 1 ? args[0] : args[2]);
    switch (kind) {
        case 'function':
            return DecoratorType.Class;
        case 'number':
            return DecoratorType.Parameter;
        case 'undefined':
            return DecoratorType.Property;
        case 'object':
            return DecoratorType.Method;
        default:
            return DecoratorType.None;
    }
}
function getDecoratorTypeFromArguments(args) {
    'use strict';
    if (args.length === 0 || args.length > 3) {
        return DecoratorType.None;
    }
    var kind = typeof (args.length === 1 ? args[0] : args[2]);
    switch (kind) {
        case 'function':
            return DecoratorType.Class;
        case 'number':
            return DecoratorType.Parameter;
        case 'undefined':
            return DecoratorType.Property;
        case 'object':
            return DecoratorType.Method;
        default:
            return DecoratorType.None;
    }
}
function getDecoratorTypeFromArguments ( args ) { 'use strict' ; if ( args . length === 0 || args . length > 3 ) { return DecoratorType . None ; } var kind = typeof ( args . length === 1 ? args [ 0 ] : args [ 2 ] ) ; switch ( kind ) { case 'function' : return DecoratorType . Class ; case 'number' : return DecoratorType . Parameter ; case 'undefined' : return DecoratorType . Property ; case 'object' : return DecoratorType . Method ; default : return DecoratorType . None ; } }
Guesses which kind of decorator from its functional arguments
@param args
@returns {DecoratorType}
Guesses which kind of decorator from its functional arguments