aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-31 00:02:02 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-31 00:28:09 +0800
commit0e45497acbb0ad572e549ad81bb72b3b31d7860d (patch)
treefa4c0680b3da5e0c52fb209cfbac73b6dd1e5b6e
parentfe7a62ba9a0d1647ea94683a0369b98e2a675f94 (diff)
downloaddexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar.gz
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar.bz2
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar.lz
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar.xz
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.tar.zst
dexon-sol-tools-0e45497acbb0ad572e549ad81bb72b3b31d7860d.zip
rename variables
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index bb2f4cea6..95c89b2e5 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -46,13 +46,13 @@ export class SolidityDocGenerator {
const compiler = new Compiler(this._compilerOptions);
const compilerOutputs = await compiler.getCompilerOutputsAsync();
for (const compilerOutput of compilerOutputs) {
- const solidityModules = _.keys(compilerOutput.contracts);
- for (const solidityModule of solidityModules) {
- const compiledSolidityModule = compilerOutput.contracts[solidityModule];
+ const contractFileNames = _.keys(compilerOutput.contracts);
+ for (const contractFileName of contractFileNames) {
+ const contractNameToOutput = compilerOutput.contracts[contractFileName];
- const contracts = _.keys(compiledSolidityModule);
- for (const contract of contracts) {
- const compiledContract = compiledSolidityModule[contract];
+ const contractNames = _.keys(contractNameToOutput);
+ for (const contractName of contractNames) {
+ const compiledContract = contractNameToOutput[contractName];
if (_.isUndefined(compiledContract.abi)) {
throw new Error('compiled contract did not contain ABI output.');
}
@@ -61,7 +61,7 @@ export class SolidityDocGenerator {
}
logUtils.log(
- `TODO: extract data from ${contract}'s abi (eg name, which is "${
+ `TODO: extract data from ${contractName}'s abi (eg name, which is "${
(compiledContract.abi[0] as MethodAbi).name
}", etc) and devdoc (eg title, which is "${
compiledContract.devdoc.title