我正在使用 Google Closure Tools 的 gjslint 工具清理我的代码。它报告以下错误:
Line 15, E:0222: Member "this._dictionary" must not have @private JsDoc
这是代码:
/**
* Stacker class.
* @constructor
* @param {frankenstein.app.Dictionary} dictionary input dictionary for stacking.
*/
frankenstein.app.Stacker = function(dictionary) {
/** @private */ this._dictionary = dictionary;
};
有人可以解释为什么 this._dictionary 不能有@private JsDoc 吗?谢谢!