diff --git a/packages/plugins/coverage/src/lib/contractEnhanced.ts b/packages/plugins/coverage/src/lib/contractEnhanced.ts index 3396cd1c7..b1fa6c2a3 100644 --- a/packages/plugins/coverage/src/lib/contractEnhanced.ts +++ b/packages/plugins/coverage/src/lib/contractEnhanced.ts @@ -1,16 +1,16 @@ -import { File } from "embark-utils"; +import {File} from "embark-utils"; import * as fs from "fs-extra"; import * as path from "path"; -import parser, { LineColumn, Location, SourceUnit } from "solidity-parser-antlr"; -import { EventLog } from "web3/types"; +import parser, {LineColumn, Location, SourceUnit} from "solidity-parser-antlr"; +import {EventLog} from "web3/types"; -import { decrypt } from "./eventId"; -import { Injector } from "./injector"; -import { Instrumenter } from "./instrumenter"; -import { InstrumentWalker } from "./instrumentWalker"; -import { coverageContractsPath } from "./path"; -import { Printer } from "./printer"; -import { BranchType, Coverage } from "./types"; +import {decrypt} from "./eventId"; +import {Injector} from "./injector"; +import {Instrumenter} from "./instrumenter"; +import {InstrumentWalker} from "./instrumentWalker"; +import {coverageContractsPath} from "./path"; +import {Printer} from "./printer"; +import {BranchType, Coverage} from "./types"; const STATEMENT_EVENT = "__StatementCoverage"; const POINT_FACTOR = 1000000000; @@ -139,9 +139,9 @@ export class ContractEnhanced { const coverageId = this.getNewCoverageId(this.coverage.fnMap); const line = location.start.line; this.coverage.fnMap[coverageId] = { + decl: location, line, loc: location, - decl: location, name, }; this.coverage.f[coverageId] = 0;