新人求助api查询方式

各位大神,小弟刚刚接触cocos creator 不久,在研究Example范例集合,经常会遇到一些变量或者方法在API中是无法查询到的。例如在看case - 02_u i - label 的script labelLocalized,其中的代码部分如下:
properties: {
textKey: {
default: ‘TEXT_KEY’,
multiline: true,
tooltip: ‘Enter i18n key here’,
notify: function () {
if (this._sgNode) {
this._sgNode.setString(this.string);
this._updateNodeSize();
}
}
},
请问_sgNode 和 _updateNodeSize() 这个是哪里来的,应该如何查询得到呢?
期待大大们的无私解答。感谢!

这些 api 都在 https://github.com/cocos-creator/engine sgNode 指的是 CCSGLabel.js 这个文件里面定义的 class。

感谢子龙大大。另外问一下,label组件的问题:如何在label组件上面添加脚本,我看到范例02_label中的名叫labelLocalized的label组件是能够添加脚本的,这个是如何实现的