[英]google closure not suppressing warnings
S:\\Source_Control\\Test.js:24027: WARNING - Suspicious code. S:\\ Source_Control \\ Test.js:24027:警告-可疑代码。 The result of the 'getprop' operator is not being used.
未使用'getprop'运算符的结果。 /** @suppress {suspiciousCode} */ $['player'].Player;
/ ** @suppress {suspiciousCode} * / $ ['player']。Player;
The suppress tag does not appear to be functioning. 抑制标签似乎没有起作用。 Am I using it wrong?
我使用错了吗?
This is the code: 这是代码:
/** @suppress {suspiciousCode} */ $['player'].Player;
Suppress annotations are only supported at the file level or the function level. 仅在文件级别或功能级别支持抑制注释。
You'll need to place your suppress annotation on the function: 您需要在函数上放置抑制注释:
/** @suppress{suspiciousCode} */
function() {
$['player'].Player;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.