如何在简单模式下告诉 Google Closure Compiler 可以压缩特定的函数名称?

How to tell Google Closure Compiler in simple mode that particular function name could be compressed?

Google Closure Compiler 使用 ADVANCED_OPTIMIZATIONS 选项完成它,但我不能使用它,因为我使用 jQuery。所以,我必须使用 SIMPLE_OPTIMIZATIONS,但我想压缩一些函数的名称。

function myLongFunctionName(response) {
 // do something here
}

myLongFunctionName(text);

我可以将 myLongFunctionName 更改为 a(或 Closure Compiler 选择的任何内容)。但是我没有看到任何可以帮助我的 annotation。我该怎么做?

如果函数是本地的,那么 GoogleClosure 编译器会重命名它。我已将代码移至

(function(){

  function myLongFunctionName(response) {
   // do something here
  }

  myLongFunctionName(text);

})()

结果,它也被压缩了。