aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-30 23:51:17 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-31 00:02:46 +0800
commitb88a56e6b723016cf830511b2da503747e086f54 (patch)
tree63bf349c1c2e9815fdbc80f670b5f512037d9b3a /packages
parent297cbd996d7da0cb3232f47734290d0377693faf (diff)
downloaddexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar.gz
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar.bz2
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar.lz
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar.xz
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.tar.zst
dexon-sol-tools-b88a56e6b723016cf830511b2da503747e086f54.zip
reduce proximity b/w instantiation and use of var
Diffstat (limited to 'packages')
-rw-r--r--packages/sol-doc/src/solidity_doc_generator.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/sol-doc/src/solidity_doc_generator.ts b/packages/sol-doc/src/solidity_doc_generator.ts
index aba7b5475..856787e5f 100644
--- a/packages/sol-doc/src/solidity_doc_generator.ts
+++ b/packages/sol-doc/src/solidity_doc_generator.ts
@@ -40,10 +40,9 @@ export class SolidityDocGenerator {
this._compilerOptions.contracts = contractsToCompile;
}
- const compiler = new Compiler(this._compilerOptions);
-
const doc: DocAgnosticFormat = {};
+ const compiler = new Compiler(this._compilerOptions);
const compilerOutputs = await compiler.getCompilerOutputsAsync();
for (const compilerOutput of compilerOutputs) {
const solidityModules = _.keys(compilerOutput.contracts);