aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-doc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sol-doc')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index 312124ca1..457c86c91 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -124,7 +124,7 @@ function _genConstructorDoc(abiDefinition: ConstructorAbi, devdocIfExists: Devdo
// from that object extract the "details" (comment) property
comment = 'something from devdoc';
- return {
+ const constructorDoc: SolidityMethod = {
isConstructor: true,
name: '', // sad we have to specify this
callPath: '', // TODO: wtf is this?
@@ -134,6 +134,8 @@ function _genConstructorDoc(abiDefinition: ConstructorAbi, devdocIfExists: Devdo
isPayable: abiDefinition.payable,
comment,
};
+
+ return constructorDoc;
}
function _genMethodDoc(
@@ -160,7 +162,7 @@ function _genMethodDoc(
const isConstant = abiDefinition.type === 'fallback' ? true : abiDefinition.constant;
// TODO: determine whether fallback functions are always constant, as coded just above
- return {
+ const methodDoc: SolidityMethod = {
isConstructor: false,
name,
callPath: '', // TODO: wtf is this?
@@ -170,6 +172,7 @@ function _genMethodDoc(
isPayable: abiDefinition.payable,
comment,
};
+ return methodDoc;
}
function _genEventDoc(abiDefinition: EventAbi): Event {