| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/workspace/happymandarin/node_modules/ng-annotate/ |
Upload File : |
var ctx;
module.exports = {
init: function(_ctx) {
console.error("plugin init called, got ctx with keys " + Object.keys(_ctx));
// ctx contains a bunch of helpers and data
// stash it away so you can use it inside match
ctx = _ctx;
// if you want to setup position triggers now, checkout nginject-comments.js
},
match: function(node) {
console.error("plugin match called, node with type " + node.type);
// if you think you have a match, return the found target node
// (may or may not be the passed in argument node)
// you may also return an array of target nodes
// ng-annotate will then execute replaceRemoveOrInsertArrayForTarget
// on every target, i.e. it may remove an array (if --remove) and it may
// add an array (if --add)
// please consider filing an issue if you need to workaround a defect or
// an obviously missing feature in ng-annotate. we'll try to fix it!
// you know about /* @ngInject */, don't you? (you may not need a plugin)
// please consider sending a pull request if your plugin is of general use
},
};