Skip to content

Commit

Permalink
軽微な整形
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Sep 6, 2018
1 parent 43bb1b2 commit 75702ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/nako3.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class NakoCompiler {
}
}

/**
/**
* プラグイン・オブジェクトを追加(ブラウザ向け)
* @param objName オブジェクト名
* @param po 関数リスト
Expand Down Expand Up @@ -273,7 +273,6 @@ class NakoCompiler {
getFunc (key) {
return this.funclist[key]
}

}

module.exports = NakoCompiler
4 changes: 4 additions & 0 deletions src/nako_gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,10 @@ class NakoGen {
funcBegin = ';__self.isSetter = true;'
funcEnd = ';__self.isSetter = false;'
}
// 変数「それ」が補完されていることをヒントとして出力
if (argsOpts['sore']) {
funcBegin += '/*[sore]*/'
}
// 関数呼び出しコードの構築
let argsCode = args.join(',')
let code = `${funcNameS}(${argsCode})`
Expand Down

0 comments on commit 75702ac

Please sign in to comment.