https://cybozu.connpass.com/event/227770/ ã®çºè¡¨è³æã§ãã
/** * @param {number} x * @constructor */ foo.bar.Hoge = function(x) { /** @private */ this.x_ = x; } /** * @private {number} */ foo.bar.Hoge.prototype.y_; /** * @param {number} x * @constructor * @struct */ foo.bar.Hoge = function(x) { /** @private */ this.x_ = x; /** @private {?number} */ this.y_ = null; } æ°ãã¤ããã¹ãç¹ã¯2ç¹ï¼ å ¨ã¦ã®ããããã£ãã³ã³ã¹ãã©ã¯ã¿ã«ã¾ã¨ããï¼ @structãã³ã³ã¹ãã©ã¯ã¿ã«å¯è½ãªãã°ã¤ããï¼ èæ¯ ä»¥åã¾ã§ã¯ï¼åçã«çæããããããããã£ã«ã¤ãã¦ã¯
Closure Compilerã使ç¨ããã¿ã¤ãã»ã¼ãJavaScriptã³ã¼ãã£ã³ã°ã«ã¤ãã¦ã¾ã¨ãã Closure Compilerã¯Closure Toolsã®ä¸é¨ã§ã JavaScriptã³ã¼ãã解æãã¦å§ç¸®ã¨æé©åãè¡ãJavaScriptToJavaScriptã³ã³ãã¤ã©ã§ãã æé©åã ãã§ãªããã·ã³ã¿ãã¯ã¹ãåã®ãã§ãã¯æ©è½ãæä¾ã åãã§ãã¯ã¯ãJsDocã³ã¡ã³ãã®å½¢å¼ã§è¨è¼ãããåæ å ±ããã¨ã«è¡ããã¾ãã åã·ã¹ãã ã¯ãECMAScript4ã®ä»æ§ã«æºæ ãã¦ãã模æ§ã Closure Compilerã使ç¨ãããã¨ã§ãECMAScript3ã®ä¸çã§ECMAScript4ã©ã¤ã¯ãªåã·ã¹ãã ã使ãã¾ãã(åæ å ±ãã³ã¡ã³ãã«æ¸ãã®ã§ãã¹ãã¼ããã«ã¯æ¬ ãã¾ããã»ã») Closure Compilerã®ã¤ã³ã¹ãã¼ã« Closure Compilerã®ãµã¤ãããzipã¢ã¼ã«ã¤ããåå¾
天ä¸ä¸altJSæ¦éä¼ã§ã®çºè¡¨ http://connpass.com/event/6402/ Google Closure Compilerã®ææ°äºæ ã«ã¤ãã¦Read less
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}