( abiPiece: RawAbiDefinition, registerStruct: (struct: StructType) => void, documentation?: DocumentationResult, )
| 300 | } |
| 301 | |
| 302 | function parseFunctionDeclaration( |
| 303 | abiPiece: RawAbiDefinition, |
| 304 | registerStruct: (struct: StructType) => void, |
| 305 | documentation?: DocumentationResult, |
| 306 | ): FunctionDeclaration { |
| 307 | debug(`Parsing function declaration "${abiPiece.name}"`) |
| 308 | return { |
| 309 | name: abiPiece.name, |
| 310 | inputs: abiPiece.inputs.map(parseRawAbiParameter.bind(null, registerStruct)), |
| 311 | outputs: parseOutputs(registerStruct, abiPiece.outputs), |
| 312 | stateMutability: findStateMutability(abiPiece), |
| 313 | documentation: getFunctionDocumentation(abiPiece, documentation), |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | function parseRawAbiParameter( |
| 318 | registerStruct: (struct: StructType) => void, |
no test coverage detected
searching dependent graphs…