@@ -132,16 +132,19 @@ function setupMethods (soljson) {
132
132
133
133
var compileJSON = null ;
134
134
if ( '_compileJSON' in soljson ) {
135
+ // input (text), optimize (bool) -> output (jsontext)
135
136
compileJSON = soljson . cwrap ( 'compileJSON' , 'string' , [ 'string' , 'number' ] ) ;
136
137
}
137
138
138
139
var compileJSONMulti = null ;
139
140
if ( '_compileJSONMulti' in soljson ) {
141
+ // input (jsontext), optimize (bool) -> output (jsontext)
140
142
compileJSONMulti = soljson . cwrap ( 'compileJSONMulti' , 'string' , [ 'string' , 'number' ] ) ;
141
143
}
142
144
143
145
var compileJSONCallback = null ;
144
146
if ( '_compileJSONCallback' in soljson ) {
147
+ // input (jsontext), optimize (bool), callback (ptr) -> output (jsontext)
145
148
var compileInternal = soljson . cwrap ( 'compileJSONCallback' , 'string' , [ 'string' , 'number' , 'number' ] ) ;
146
149
compileJSONCallback = function ( input , optimize , readCallback ) {
147
150
return runWithCallbacks ( readCallback , compileInternal , [ input , optimize ] ) ;
@@ -150,6 +153,7 @@ function setupMethods (soljson) {
150
153
151
154
var compileStandard = null ;
152
155
if ( '_compileStandard' in soljson ) {
156
+ // input (jsontext), callback (ptr) -> output (jsontext)
153
157
var compileStandardInternal = soljson . cwrap ( 'compileStandard' , 'string' , [ 'string' , 'number' ] ) ;
154
158
compileStandard = function ( input , readCallback ) {
155
159
return runWithCallbacks ( readCallback , compileStandardInternal , [ input ] ) ;
@@ -158,8 +162,10 @@ function setupMethods (soljson) {
158
162
if ( '_solidity_compile' in soljson ) {
159
163
var solidityCompile ;
160
164
if ( isVersion6 ) {
165
+ // input (jsontext), callback (ptr), callback_context (ptr) -> output (jsontext)
161
166
solidityCompile = soljson . cwrap ( 'solidity_compile' , 'string' , [ 'string' , 'number' , 'number' ] ) ;
162
167
} else {
168
+ // input (jsontext), callback (ptr) -> output (jsontext)
163
169
solidityCompile = soljson . cwrap ( 'solidity_compile' , 'string' , [ 'string' , 'number' ] ) ;
164
170
}
165
171
compileStandard = function ( input , callbacks ) {
0 commit comments