nl_tokens: Add explicit dependency statements to the node .
pl_tokens: function processNode ( node ) { // check if the function is part of a variable assignment var isVarAssignment = ( node . parent . type === 'VariableDeclarator' ) ; // the parameters of the function, converted to literal strings var params = node . params . map ( paramToLiteral ) ; // [ 'arg', ..., function(arg) {} ] //  place inline if ( ( node . type === 'FunctionExpression' ) && ! isVarAssignment ) { esprimaTools . nodeSplicer ( node ) ( { parent : <mask> . parent , type : 'ArrayExpression' , elements : params . concat ( node ) } ) ; } // fn.$inject = [ 'arg', ... ] //  hoist before any intervening return statement else { var appendTo = isVarAssignment ? node . parent . parent : node ; esprimaTools . nodeSplicer ( appendTo , offset ) ( { type : 'ExpressionStatement' , expression : { type : 'AssignmentExpression' , operator : '=' , left : { type : 'MemberExpression' , computed : false , object : { type : 'Identifier' , name : node . id . name } , property : { type : 'Identifier' , name : '$inject' } } , right : { type : 'ArrayExpression' , elements : params } } } ) ; } }